Doctype
Category:HTML Tags
Doctype
All HTML documents must start with a <!DOCTYPE>
declaration. This <!DOCTYPE>
tag tells the browser what version of HTML the page is written in.
Examples
Using <!DOCTYPE>
to declare the version of HTML the page is written in.
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
Syntax
<!DOCTYPE>
Tips
- The
<!DOCTYPE>
is the very first line in the HTML document. - The
<!DOCTYPE>
does not need a closing tag.
Additional Information
For more information, see http://www.w3schools.com/tags/tag_doctype.asp.
Found a bug in the documentation? Let us know at support@code.org.