HTML Home
HTML Tags Reference
Selected Reading
© 2011 TutorialsPoint.COM
|
HTML <html> tag
Function:
The HTML <html> tag is the container that contains all other HTML elements except for the !doctype tag which is located before the opening <html> tag. All other HTML elements are nested between the <html> and </html> tags.
Difference between HTML and XHTML:
The xmlns attribute is required in XHTML but not in HTML.
Example:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<p>Actual content goes here </p>
</body>
</html>
|
Online Practice:
To Become more comfortable - Do Online Practice
Attributes:
Attribute | Value | Description |
xmlns | URL | Defines the XML namespace attribute. For example http://www.w3.org/1999/xhtml |
Standard Attributes:
Attribute | Description |
dir | Specifies the direction of the text |
lang | Sets the language code. |
|
|
|