Thetag is the root of a web page; it’s used to tell a browser that it’s viewing an HTML document. It’s required for every HTML page and contains all of the other HTML elements within it (except ). The following sections contain information about this tag, including an example of its code, and related attributes and browser compatibility.
Example ofcode
Attributes
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique attributes for thetag, and a description of each.
- Example ofcode
- Attributes
- Compatibility
- Related information
Compatibility
Browser, Cache, Code, Compatibility, Container tag, CSS, HTML terms, URL, Web design terms, XHTML
Related information
- HTML and web design help and support.