Cascading Style Sheets, or CSS, is the recommended way to control the presentation
layer in a web document. The main advantage of CSS over presentational HTML
markup is that the styling can be kept entirely separate from the content. For
example, it??™s possible to store all the presentational styles for a 10,000-page web
3 What Is CSS?
site in a single CSS file. CSS also provides far better control over presentation than
do presentational element types in HTML.
By externalizing the presentation layer, CSS offers a number of significant benefits:
?– All styling is kept in a limited number of style sheets. The positive impact this
has on site maintenance can??™t be overestimated??”editing one style sheet is
obviously more efficient than editing 10,000 HTML files!
?– The overall saving in bandwidth is measurable. Since the style sheet is cached
after the first request and can be reused for every page on the site, it doesn??™t have
to be downloaded with each web page. Removing all presentational markup from
your web pages in favor of using CSS also reduces their size and bandwidth
usage??”by more than 50% in many documented cases.
Pages:
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44