Hi,
I have read that strict xhtml is better than transitional xhtml for viewing the web for the visually impaired but can anyone tell me what the difference is? How is strict xhtml better than transitional xhtml.
Thanks inadvance.
Hi,
I have read that strict xhtml is better than transitional xhtml for viewing the web for the visually impaired but can anyone tell me what the difference is? How is strict xhtml better than transitional xhtml.
Thanks inadvance.
Short answer: the doctype itself does not make a site accessible. As noted, accessibility is about how you mark up and present content. As suggested, using a stricter DTD tends to push you toward cleaner, separation-of-content markup — that can help, but only indirectly.
XHTML 1.0 Strict versus Transitional
XHTML 1.0 Strict removes deprecated presentational tags and attributes that Transitional allows. Strict encourages moving presentation into CSS and using semantic structure for content; the formal spec is at the W3C site: XHTML 1.0. If you serve documents as application/xhtml+xml they are parsed as XML and must be perfectly well formed — a single error can break the document in strict parsers. Example (XHTML 1.0 Strict doctype):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Practical guidance that matters for visually impaired users
alt text, visible labels (label for), and fieldset/legend for groups.Recommendation
Choose a stricter doctype if you want stronger validation and cleaner markup, but prioritize semantic HTML, WCAG techniques, ARIA where needed, and real-user testing. That combination — not the doctype label — produces the best experience for visually impaired users.
Jump to Post— macneato 29Here, let me get this one for you
Hi,
I have read that strict xhtml is better than transitional xhtml for viewing the web for the visually impaired but can anyone tell me what the difference is? How is strict xhtml better than transitional xhtml.Thanks inadvance.
It may be because of it's stricter rules, which could result in writing more accessible code, but the code accessibility is ultimately determined by the developer who writes it, so you can write accessible code in xhtml transitional too.
Also, for you particular concern, you might find this very useful in picking the right colors for the site, to assure everyone can see it:
Hi,
I have read that strict xhtml is better than transitional xhtml for viewing the web for the visually impaired but can anyone tell me what the difference is? How is strict xhtml better than transitional xhtml.Thanks inadvance.
It isn't.
YOU are the one that makes a page better or worse, depending on YOUR use of colours, font-sizes, contrast, animations, images. The doctype has no effect on these things.
PS And XHTML has no advantages over HTML in the real world.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.