Copyright (c) 2013 Freelance Press Network
HTML & CSS are two of the core technologies for building web pages (HTML, Hypertext Mark up Language) provides the structure of the page, while CSS (Cascading Style Sheet) caters for the visual and aural layout, for a variety of devices. Along with graphics and scripting HTML and CSS are the Basics of building Web pages and web applications.
HTML is the language for describing the structure of web pages. HTML give authors the means to publish online documents with headings, text, tables, lists, photos etc. You can also retrieve online information via hypertext links, at the click of a button. Also provides a platform where you can design forms for conducting transactions with remote services, for use in searching for information, making reservations, ordering products among others. It also includes spreadsheet support, video clips, sound clips and other applications directly in their document.
With HTML, authors describe the structure of pages using mark up. The elements of the language label pieces of content such as paragraph, list and so on.
CSS is the language for describing the presentation of web pages, including colors, layout and fonts. It allows one to adapt the presentation to different types of devices such as large screens, small screens or printers. CSS is independent of HTML and can be used with any XML based markup language. The separation of HTML from CSS makes it easier to maintain sites, share style sheet across pages and tailor pages to different environments. This is referred to as the separation of structure from presentation.
The difference between HTML and CSS is that HTML is used to structure content while CSS is used for formatting structured content. It can also be used to control layout of many documents from one single style sheet, have a more precise control of layout, apply different layout to different media types like screen, print among others. Also portrays numerous advanced and sophisticated techniques.
HTML documents may contain style sheet rules directly in them or they import style sheets. Any style sheets language may suffice for the needs of most users, but other languages may be more suited to highly specialized needs. This specification uses the style language CSS. For example, the syntax of style data depends on the style sheet language.
In conclusion HTML is the universal markup language for the web. It lets you format text, add graphics, create links, input forms, frames and tables, and save it all in a text file that any browser can read and display. The key to html is the tags, which indicate what content is coming up and where it will be placed. CSS is the language that assists you to format you web pages and gives you total control of the layout, without messing up the document content.
CSS was introduced with html 4 to provide a better way to style HTML elements, it can be added into html using several ways including, Inline, that is where we use style attributes in html elements. Secondly through internal way where we use the style element in the head section and finally using an external CSS file.
By kropekk_pl from Pixabay