Use Of Cascading Style Sheets (CSS) / PDF
This document reviews the importance of
Cascading Style Sheets (CSS) and highlights
the importance of ensuring that use of CSS complies with CSS standards.
Why Use CSS?:
Use of CSS is the recommended way of defining
how HTML pages are displayed. You should use HTML to define the basic structure
(using elements such as <h1>, <p>, <li>, etc.) and CSS to define how these elements should appear (e.g.
heading should be in bold Arial font, paragraphs should be indented, etc.).
This approach has several advantages:
Maintenance: It is much easier to maintain the appearance of a Web site. If you
use a single CSS file updating this file allows the Web site look-and-feel to
be altered easily; in contrast use of HTML formatting elements would require
every file to be updated to change the appearance.
Functionality: CSS provides rich functionality, including defining the appearance
of HTML pages when they are printed.
Accessibility: Use of CSS
provides much greater accessibility, allowing users with special needs to alter
the appearance of a Web page to suit their requirements. CSS also allows Web
pages to be more easily rendered by special devices, such as speaking browsers,
PDAs, etc.
There are disadvantages to use of CSS. In particular legacy browsers such as Netscape
4 have difficulty in processing CSS. However, since such legacy browsers are
now in a minority the biggest barrier to deployment of CSS is probably a lack
of understand or inertia.
Approaches To Use Of CSS
There are a number of ways in which CSS can
be deployed:
External
CSS Files: The bes........
Click here for Download PDF / FREE
0 commentaires: