benefits of using css language in html
Hello friends, Today we learn about CSS (Cascading style sheets) .CSS is used for making web pages more beautiful.Cascading Style Sheets (CSS) is the W3C standard for defining the presentation of document writeen in HTML,XHTML, and, in fact , any XML language.Presentation , again , refer to the way the document is displayed or delivered to the user , whether on a computer screen reader . With style sheets handling the presentation , (X)HTML can get back to the business of defining document structure and meaning ,as intended.With the help of CSS we can change text and font styles, add color and backgrounds , and even do basic page layout using CSS.
ADVANTAGES OF USING CSS
- BETTER TYPE AND LAYOUT CONTROLS. Presentation (x)HTML,never gets close to offering the kind of control over type, background, and layout that is possible with CSS.
- LESS WORK.you can change the appearance of an entire site by editing one style sheet. making small tweaks and even entire site redesign with style sheets is much easier than when presentation instructions are mixed in with the markup.
- POTENTIALLY SMALLER DOCUMENTS AND FASTER DOWNLOADS.Old school practices of using redundant font elements and nested tables makes for bloated document .not only that,you can apply a single style sheet document to all the pages in a site for further byte savings.
- MORE ACCESSIBLE SITES.when all matter of presentation are handled by CSS,you can mark up your content meaningfully,making it more accessible for non visual or mobile devices.
- RELIABLE BROWSER SUPPORT.Nearly every browser in current use support all of CSS Level 1 and the majority of CSS Level 2(see the sidebar,Meet the Standard,for what is meant by CSS "levels.")
HOW STYLE SHEETS WORK
It's easy as 1-2-3!
- Start with a document that has marked up in HTML or X HTML.
- Write style rules for how you'd like certain element to look.
- Attach the style rules to the document.When the browser displays the document,it follows your rules for redirecting element(unless the user has applied some mandatory style,but we'll get to that later).
benefits of using css language in html
Reviewed by Unknown
on
02:39
Rating:
I appreciate the effort of the blogger. I have one small question which is related to html5. If you could help me out then it would be really helpful. How is the page structure in html5 is different from html4?
ReplyDeletehtml5 training in chennai|html5 course in chennai