HTML Document Type Declaration - DTD |
|
Doctype declaration must appear at the top of the document to tells the browser which version of HTML or Xhtml is used and how to display the page. Other versions may include HTML 4.01 or Xhtml 1.0. This description is placed before the <html> tag or the first line on the page.
The doctype is required to validate the document for the correct syntax.
W3C HTML Validation Service - http://validator.w3.org/ XHTML 1.0 transitional is the version used in these courses.
|
- HTML 4.01 Strict
- Describes the structural portions of HTML 4.01 and does not provide any frame-related markup.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
HTML 4.01 Transitional The 4.01 Trasitional or loose version declares the document includes the presentation markup elements including <B> and <FONT> but does not include frame-related markup.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/Rec-html40/loose.dtd">
|
HTML 4.01 FramsetIs the same as HTML 4.01 Transitional plus adds description for frameset markup.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
| Xhtml DTD References:
W3C Doctype Description
|