DTD – Document Type Definition
How the DTD tags are used in html files?
Document Type Definition:
Document Type Definition is the definition tag which tells the type of document to the browser. The attributes can also be added with this tags along with CSS. DTD tag should be in the first line of the html file.
Html DTD can be defined using three types
This DOCTYPE declaration still allows elements and presentation attributes that should be in the stylesheet.
This transitional Document Type Definition is used when you know that the users doesnot have the browsers not supporting CSS.
If you are using frames in your file, the browser can know that, it is a file having frames by using this doctype definition.
The XHTML Document Type Definition specifies that
is a valid element, and that it can appear inside a
, but not inside a . The URL at the end of your DOCTYPE declaration points to a place where you will find the doctype definition for the favor of HTML you are using.
DTD is also used as Document Type Declaration in XML. This tag have no end tag. The structure of a class of documents is described via element and attribute-list declarations