| The Lowdown on HTML DTDs and DOCTYPEs |
|
|
|
| Saturday, 25 March 2006 | ||||||||
Page 2 of 6
An Example DTDIf you paste in the URL (http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd) from the DOCTYPE you listed, you can download that DTD. It is just a text file, so you can open in any text editor, such as Notepad, or in any HTML editor, such as Dreamweaver, and of course in any XML editor. If you download and open it, you will see that it defines everything in the XHTML 1.0 Transitional language. Here is some example code from the XHTML 1.0 Transitional DTD:
You can see in the example above that it defines an element called img and that element is empty, meaning that there is nothing to go between start and end tags, which is why we don't write It is an XML thing as well, as you noted. HTML, like XML, is a language that uses tags (officially called elements) for describing data. |
||||||||
| Last Updated ( Sunday, 26 March 2006 ) | ||||||||
| < Prev | Next > |
|---|










