Skip to main content

Close
Get the best research tool on the web today,and free!
Connect with people with common interests!

saved by22 people, first bya77ila on 2006-10-25, last bySpace Cat on 2008-08-08

  • 6. What is a DTD?




    A DTD, or document type definition, specifies the element types and attributes that we can use in our web page. It also defines the rules of how we can use these elements together -- it's the specification for our markup language. The DTD can also declare the character entities we can use; more about those later.



    A validator will test a web page for compliance with the DTD specified in the DOCTYPE declaration either explicitly, via the system identifier, or implicitly, using the public identifier. Browsers use non-validating parsers and do not actually read the DTD. They have built-in knowledge about the various element types, and usually a hard-coded list of character entities as well.



    For HTML 4.01, which is the latest and greatest version, there are three different DTDs: Strict, Transitional and Frameset.

  • If we are creating a new web page, the W3C recommends that we use HTML 4.01 Strict.
  • 7. What is the difference between Strict, Transitional and Frameset DTDs?
  • 8. Which DOCTYPE should I use?
  • 12. What does character encoding (charset) mean?
  • on 2006-11-28 Mamouri
    good html practices and advanced lessons