1. Computing
Filed In:
  1. XML

DTDs and Doctype

Defining the DOCTYPE or DTD is vital to creating valid and usable XML documents. Also, many browsers will display Web pages differently depending upon what DOCTYPE you use. Be sure you know how to use DOCTYPE and DTDs effectively.

Explaining the Document Type Definition (DTD)
Explaining the Document Type Definition (DTD)

Understanding the Document Type Definition
DTDs or Document Type definitions are an integral part of XML. It is important to know what they are and how to read one, if not how to write your own.

Quirks Mode—Using the DOCTYPE Element
If you don't use a DOCTYPE element your pages will be displayed in Quirks Mode. And this can result in some strange behavior. Learn how to avoid triggering quirks mode and use a valid DOCTYPE. Updated to include HTML5 information

Why Use DOCTYPE Declarations
Letting the web browser know what to expect from your web page HTML is a good idea. Some browsers will change how they display a Web page depending upon the presence or absence of a DOCTYPE definition. And Internet Explorer 6 has a special feature all it's own for handling issues with DOCTYPE. Learn why DOCTYPE declarations are important.

DOCTYPE List
There are many potential Document Type Declarations you can use as your DOCTYPE declaration. This article shows a list of the more common ones and how to choose the best one for your web pages.

Parts of a DTD: Elements, Entities, Attributes, and Notations
DTDs or Document Type definitions are an integral part of XML. It is important to know what they are and how to read one, if not how to write your own.

A Sample DTD
See how a DTD could be written by reviewing this sample DTD.

Anatomy of a DOCTYPE
Understanding the syntax of the DOCTYPE statement makes it easier to remember to use them in your HTML and XHTML documents.

FAQ: What is a DTD?
A DTD is a document type definition.

DTDs and Markup Languages
DTDs or Document Type Definitions are the basis of markup languages, including XML and HTML.

The DOCTYPE Element
Tag library entry.

Doctype - Definition
A definition of the HTML term DOCTYPE. Learn more about DOCTYPE declarations.

Document Type Definition (DTD)
A definition of a DTD. This article explains the basic definition of a document type definition file as well as links to sample code and more detailed articles.

Discuss in my forum

©2013 About.com. All rights reserved.