This helps ensure that browsers render pages correctly and screen readers accurately
translate the content.
There are several markup validators, all of which perform the same basic task: enter a URL
or upload a file, and it will reveal whether the web page is in fact valid or there are still
unresolved errors and warnings that need to be addressed. Figure 3-1 shows the validator
created by the W3C, which can be found at validator.w3.org. XHTML validation requires
developers to avoid noisy presentational markup, and is therefore much preferred over
the overly forgiving HTML 4.01 spec, which allows ???old-school??? markup like
tags.
Bottom line: A site that passes a validation test does not automatically equate to full accessibility,
but it is a great place to start. When the structure of the code is sound, user agents
will read the content as intended.
Figure 3-1. If your site passes the validation mustard, the W3C validator will return this screen.
WEB DESIGN AND MARKETING SOLUTIONS FOR BUSINESS WEBSITES
46
Semantic markup
The advent of CSS enabled web designers to toss out muddy presentational tags like
and table-driven layouts in favor of lean, semantic markup that accurately
describes the structure of a document without trying to affect the visual representation of
the information.
Pages:
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139