Author: * Bithiah Nebet -
0 Posts
on this thread out of
48 Posts
sitewide.
Date: Nov 5, 2003 - 07:03
OK, some general info about XHTML Doctypes.
A Document Type (or Doctype) Declaration generally appears at the top of the page, to let the browser know which version of HTML to expect. XHTML requires you to add this tag.
There are three available for use: Strict, Transitional, and Frameset.
Strict - Use it when you want really clean coding, free of deprecated tags.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
Transitional - The name says it all. This may contain deprecated HTML tags. This one is safer, I think, because many people still don't have the latest browsers that understand CSS.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
Frameset - Use it when you're working with HTML frames.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/frameset.dtd">
|