|
[HTML][P:5] !DOCTYPE Declaration
|
|
07-28-2011, 05:51 AM
|
|||
|
|||
|
<!DOCTYPE> Declaration
The Document Type Declaration (DTD) specifies the rules for the markup language, so that browsers can render the content correctly. The doctype declaration has the form: Code: <!DOCTYPE root-element PUBLIC![]() Note: The doctype declaration should be the very first line in an HTML document. There are three HTML DTDs: •Strict •Transitional •Frameset HTML 4.01 Strict Contains all HTML elements and attributes, but DOES NOT include presentational or deprecated elements. Framesets are not allowed. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTDContains all HTML elements and attributes, INCLUDING presentational and deprecated elements. Framesets are not allowed. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTDHTML 4.01 Frameset Same as HTML 4.01 Transitional, but allows frameset content. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTDOlder Doctypes HTML 2.0 This doctype is widely supported by browsers but lacks support for most commonly used presentational elements and attributes, tables, frames, and internationalization. Code: <!DOCTYPE HTML PUBLIC "-//IETF//DTDCode: <!DOCTYPE HTML PUBLIC "-//W3C//DTDLike my posts? Feel free to rep+ me or donate some points. |
|||
|
« Next Oldest | Next Newest »
|
| User(s) browsing this thread: |
| 1 Guest(s) |



![[Image: 9b1664099585afbb30944d58faa95767.png]](http://gyazo.com/9b1664099585afbb30944d58faa95767.png)



