XHTML DTDs

With so many people using visual drag-and-drop tools to create web pages nowadays, I wonder how many people still truly appreciate what goes on behind the scenes after they click on “Save”?

Based on current standards, if the tools you used to create the web page is compliant with standards, it should specify a W3C DTD that it will comply with, failing which it may not be rendered properly by an Internet browser. But of course, so many Internet browsers are so flexible (read non-compliant) that they tend to forgive errors and attempt to interpret and render the page anyway.

Here are the 4 DTDs where one be used in your web pages depending on your needs.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”>

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>

Leave a Reply

Your email address will not be published. Required fields are marked *