HTML doctype
The <!DOCTYPE ...> declaration (technically it's not a "tag") should be the very first thing in your document. A DOCTYPE is required to validate the document.
The version of HTML against which the document is validated is based on the DOCTYPE.
Different version doctype is shown below.
This is the <!DOCTYPE ...> declaration
For HTML version 3.2:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
For HTML version 4.0: we have three standard doctypes.
The documents that strictly confirm and that aren’t frameset documents use this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd”>
For a not quite so strict conformance use this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
For documents which are frameset documents use this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
"http://www.w3.org/TR/REC-html40/frameset.dtd">
HTML Basic Topics
Friday, September 24, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment