Categories
- HTML Books
- HTML Colors
- HTML Characters
- HTML Tags
- <!--...-->
- <!doctype>
- <a>
- <abbr>
- <acronym>
- <address>
- <applet>
- <area>
- <b>
- <base>
- <basefont>
- <bdo>
- <big>
- <blockquote>
- <body>
- <br>
- <button>
- <caption>
- <center>
- <cite>
- <code>
- <col>
- <colgroup>
- <dd>
- <del>
- <dfn>
- <dir>
- <div>
- <dl>
- <dt>
- <em>
- <fieldset>
- <font>
- <form>
- <frame>
- <frameset>
- <h1>
- <h2>
- <h3>
- <h4>
- <h5>
- <h6>
- <head>
- <hr>
- <html>
- <i>
- <iframe>
- <img>
- <input>
- <ins>
- <isindex>
- <kbd>
- <label>
- <legend>
- <li>
- <link>
- <map>
- <menu>
- <meta>
- <noframes>
- <noscript>
- <object>
- <ol>
- <optgroup>
- <option>
- <p>
- <param>
- <pre>
- <q>
- <s>
- <samp>
- <script>
- <select>
- <small>
- <span>
- <strike>
- <strong>
- <style>
- <sub>
- <sup>
- <table>
- <tbody>
- <td>
- <textarea>
- <tfoot>
- <th>
- <thead>
- <title>
- <tr>
- <tt>
- <u>
- <ul>
- <var>
- HTML Tutorial
- HTML Software
- HTML Validator
Tools
Partners
HTML <html> Tag
Description:
The <html> tag tells the browser that this is an HTML document.
The html element is the outermost element in HTML and XHTML documents. The html element is also known as the root element.
Specific Attributes:
| Attribute | Definition |
| 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 | Definition |
| lang | Specifies a language code for the content in an element. |
| dir |
Specifies the text direction for the content in
an element.
|
Example Code:
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>



