Thursday 8 March 2012

Use

Prior to CSS, about all of the adumbrative attributes of HTML abstracts were independent aural the HTML markup; all chantry colors, accomplishments styles, aspect alignments, borders and sizes had to be absolutely described, about repeatedly, aural the HTML. CSS allows authors to move abundant of that advice to addition file, alleged a appearance sheet, consistent in appreciably simpler HTML.

Headings (h1 elements), sub-headings (h2), sub-sub-headings (h3), etc., are authentic structurally application HTML. In book and on the screen, best of font, size, blush and accent for these elements is presentational.

Prior to CSS, certificate authors who capital to accredit such typographic characteristics to, say, all h2 headings had to use the HTML chantry and added adumbrative elements for anniversary accident of that branch type. The added adumbrative markup in the HTML fabricated abstracts added complex, and about added difficult to maintain. In CSS, presentation is afar from structure. In print, CSS can ascertain color, font, argument alignment, size, borders, spacing, blueprint and abounding added typographic characteristics. It can do so apart for on-screen and printed views. CSS additionally defines non-visual styles such as the acceleration and accent with which argument is apprehend out by aural argument readers. The W3C now considers the advantages of CSS for defining all aspects of the presentation of HTML pages to be above to added methods. It has accordingly deprecated the use of all the aboriginal adumbrative HTML markup.

CSS files are amid into HTML abstracts application the afterward syntax:

No comments:

Post a Comment