Copyright © tutorialspoint.com
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.
The xmlns attribute is required in XHTML but not in HTML.
<html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <p>Actual content goes here </p> </body> </html> |
To Become more comfortable - Do Online Practice
Attribute | Value | Description |
---|---|---|
xmlns | URL | Defines the XML namespace attribute. For example http://www.w3.org/1999/xhtml |
Attribute | Description |
---|---|
dir | Specifies the direction of the text |
lang | Sets the language code. |
Copyright © tutorialspoint.com