Back to the html tags list
HTML <!DOCTYPE> Tag
The <!DOCTYPE> tag tells the browser what to expect. Like if it is a Transitional doctype it will tell the browser to use a non-standards mode. If it is a Strict doctype the browser will swich to standards mode. This tag should be placed first on the page, before the <html> tag also if you are using XHTML, this tag does not need to be closed.
Where/how To Use The <!DOCTYPE> Tag
| Use in head or body section? | Use before the <html> tag |
| Inline or Block level tag? | No level |
| HTML Tag Syntax? | <Tag> |
| XHTML Tag Syntax? | <Tag> |
Example - HTML 4.01
XHTML 1.0
Notes
Use the right doctype that is most suitiable for your site.
If no doctype is present the browser will process the page as Transitional.
'doctype' is 'document type'.
Back to the html tags list

