Quackit Logo

Got a MySpace Page?

Get "www.yourname.com" for your MySpace page. Learn how >>.

HTML html Tag

Print Version
 

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.

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:
AttributeDescription
versionSpecifies the HTML DTD version of the document. The version attribute is deprecated - use the !doctype tag instead.
contentSpecifies the property's value.
schemeSpecifies a scheme to use to interpret the property's value (as declared in the content attribute).
http-equivUsed 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:
AttributeDescription
langLanguage code
dirSpecifies the direction of the text

Also see the complete list of HTML tags


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!