HTML and CSS Reference
In-Depth Information
Basic Document Template
Regardless of its content, every web page has the same basic foundation for a document
structure.
The <html> element
In an HTML document everything begins and ends with the <html> tag. This tag tells the
browser that what is being read is an HTML document and should therefore be processed as
a web page. The <html> tag is also known as the root of the HTML document, meaning that
every other tag in the document will be placed inside this root element. To begin our web
page, we will type in <html></html>, leaving a few rows in between for the other tags.
<html>
</html>
Note: When writing tags it is common practice to write the opening and the closing
tags at the same time and then place the content in between. As there will be many
tags written throughout web page documents, this makes it easier to ensure that all
opened tags have been closed.
In the new HTML5 specification, the <html> tag can be extended with the manifest attribute.
This attribute accepts the location of a manifest file, which in turn contains information on
the document's cache. This means that the browser is instructed to store the files listed in the
manifest locally on the user's computer in order to allow the user to access the page without
an Internet connection. The manifest file listed in the attribute is a simple text file that lists
the resources that the browser should cache for offline access. Except for offline browsing,
cached resources help the page load faster and decrease the request load on the server.
 
Search WWH ::




Custom Search