<html> tag in HTML
The <html> tag is used to inform the browser that this is an HTML document.
Important Description
- The <html> tag is used as the container for all HTML elements.
- Open and close tag required of <html>.
Syntax Example of <html> tag
<html> Tag Browser Support
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<html> |
Yes |
Yes |
Yes |
Yes |
Yes |
Global Attributes
Attributes
Used xmlns attribute, If you need the content to conform to XHTML.
Attribute |
Value |
Description |
xmlns |
http://www.w3.org/1999/xhtml |
Defines the XML namespace attribute |