"So What is a DTD?
The tags in the HTML language must be defined somewhere, right? They are defined in the DTD, which stands for Document Type Definition. In a DTD for HTML, all the HTML tags are defined. Everything is defined in the DTD -- the tags, the attributes, the possible values they can hold. Think of the DTD as the HTML tag dictionary: it lists all the tags, what they mean, and how they relate to each other.
Also, there are different DTDs because there are different versions of HTML:
HTML 4.01 Strict
HTML 4.01 Transitional
XHTML
It seems like the eternal question amongst web developers: HTML or XHTML? Wherever I look there seems to be posts in forums raising the question, web developers asking me or other people write blog posts about what they believe is the right way to go. I’m not writing this post to tell you what the ultimate choice is, but rather to inform you about the consequences of what you choose. So, let’s take it from the top:
Strict or Transitional?
Definitely strict. Transitional doctypes are exactly what the name implies: a doctype for a phase of
It seems like the eternal question amongst web developers: HTML or XHTML? Wherever I look there seems to be posts in forums raising the question, web developers asking me or other people write blog posts about what they believe is the right way to go. I’m not writing this post to tell you what the ultimate choice is, but rather to inform you about the consequences of what you choose. So, let’s take it from the top:
Strict or Transitional?
Definitely strict. Transitional doctypes are exactly what the name implies: a doctype for a phase of