After
applying a few CSS rules, the result is a lightweight, easy-to-read,
and most of all, semantically meaningful element that works on any
XHTML-capable device, regardless of screen size, or even its capability
to read CSS.
The Future Just Happened
Today, with so many browsers and other devices standardizing
around XHTML and CSS, noncompliant Web sites are ?¬? nding that
it is dif?¬? cult to deliver their existing content on these newer devices
and browsers. Have you seen your home page on a handheld computer
lately?
Although bringing your current Web site into the modern age may
take a substantial amount of work, you can console yourself that by
following the new Web standards, you can do it once and do it right.
If you are starting a new site, you can do it right the ?¬? rst time.
In Stylin??™, you will learn to future-proof your site by separating the
content from the presentation. You do this by marking up your
content with XHTML, and then, using a single line of code, you link
these pages to a separate ?¬? le called a style sheet, which contains the
presentation rules that de?¬? ne how the markup should be displayed.
The power of this church-and-state separation is that you can create
different style sheets for browsers, for handheld devices, for
printing, for screen readers used by the visually impaired, and so
STYLIN??™ WITH CSS - CHAPTER 1 10
on.
Pages:
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33