Sunday, August 12, 2012

HTML Primer


HTML Document Structure
There are three important container tags that are used to structure an HTML document. These tags are
HTML, HEAD, and BODY. A typical HTML document will be created using the following structure:
<HTML>
<HEAD>
<TITLE>Your title, which displays in the window title bar, would
go here</TITLE>
</HEAD>
<BODY>

The information to be displayed in the window to the browser will
be placed within the body
</BODY>
</HTML>
The header region (HEAD container) contains tags that are relevant to the document as a whole, such as the
title. It may also contain dynamic HTML definitions, such as those implemented in JAVASCRIPT. The body
region contains the actual document content.
A couple of notes:
 The one common variation to the above structure is to replace the BODY container with a
FRAMESET container, within which are a series of FRAME containers. The interested reader is
encouraged to read more about these and other advanced HTML capabilities.
 Although indentation is encouraged for readability when creating HTML, it is completely ignored
by the browser (as is formatting such as carriage returns or extra spaces in the text file). All
HTML formatting must be applied using tags

No comments:

Post a Comment