HTML html Tag
The information on this page is based on HTML version 4.01 (which is the current version of HTML). The next version, HTML 5, is currently being written. Here's a list of HTML 5 tags.
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 opening <html> and </html> tags.
| Example |
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>HTML meta tag</title>
</head>
<body style="background-color:orange">
Document content goes here
</body>
</html>
|
| Attributes: |
| Attributes specific to this tag: |
| Attribute | Description |
| version | Specifies the HTML DTD version of the document. The version attribute is deprecated - use the !doctype tag instead. |
| content | Specifies the property's value. |
| scheme | Specifies a scheme to use to interpret the property's value (as declared in the content attribute). |
| http-equiv | Used for http response message headers. For example http-equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie. |
| Other Attributes: |
| Attribute | Description |
| lang | Language code |
| dir | Specifies the direction of the text |
|
Also see the HTML 5 version of HTML tags
Enjoy this page?
-
- Link to this page (copy/paste into your own website or blog):
- Link to Quackit using one of these banner ads.
Thanks for supporting Quackit!