The HTML Tag
The root element in HTML is called, well HTML. This reference includes some Background information, and Example of use.
The HTML element is used to tell browsers that its a HTML page, but the HTML element may also be styled with CSS.
Attributes
| Attribute: | Value: | Description: |
| Attributes | Global Attributes | Global, Event, I18n |
| manifest | URI | URI for cache file I.e. manifest.cache |
The manifest attribute
This attribute is used for cache control, and links to a file containing manifests. For more information see: The manifest file
Example:
Note. Only one html tag is allowed
The html tag is the root element in a ducument, and parent of head and body. Further more, the html element may have its own styling applied.
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>My first Website</title>
<style type="text/css">
html, body {
height: 100%;
}
</style>
</head>
<body>
<h1>Welcome to my website</h1>
<p>My first Website.</p>
</body>
</html>
In the above example, both html and body has a height of 100% applied, this is to ensure divisions with a min-height of 100% will fill out the canvas vertically. A document's primary language may be set using the LANG attribute on the HTML element.