WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Importancy of Doctype & Text Encoding

for

From: ben morrison
Date: Jan 19, 2007 3:30AM


On 1/19/07, Kallie Swanepoel < <EMAIL REMOVED> > wrote:
> What doctype, text encoding, and font should one use to make pages
> accessible, but also to ensure that pages are beeing displayed correctly
> by all browsers? Not the font on the page as it's beeing displayed on
> the page, but the font of the text encoded in the html.

Personally, I use HTML 4.01 strict doctype[1] as this avoids
quirksmode[2] and It negates the xml prolog issue with regards to
XHTML and IE [3].

HTML 4.01 Strict doctype with a URL:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

[1] http://www.oreillynet.com/lpt/a//javascript/synd/2001/08/28/doctype.html
[2] http://hsivonen.iki.fi/doctype/
[3] http://www.hixie.ch/advocacy/xhtml

For text encoding I use utf-8 [4] if its possible with your development setup:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

[4] http://en.wikipedia.org/wiki/UTF-8


ben
--
Ben Morrison