HTML 5 <html> Tag
Example
A simple HTML 5 document:
<!DOCTYPE HTML>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html> |
Try it yourself »
|
Definition and Usage
The <html> tag tells the browser that this is an HTML document.
The html element is the outermost element in HTML documents.
The html element is also known as the root element.
Differences Between HTML 4.01 and HTML 5
HTML 5 has a new attribute: manifest
Tips and Notes
Note: If you need your content to conform to XML, define the xmlns attribute, the
ONLY legal value is "http://www.w3.org/1999/xhtml"
Attributes
| Attribute |
Value |
Description |
| manifest |
url |
Defines an URL, at this URL the document's cache
information is being described. |
| xmlns |
http://www.w3.org/1999/xhtml |
Defines the XML namespace attribute. |
Standard Attributes
| class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title |
For a full description, go to Standard Attributes in HTML 5.
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4000 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|