The first and last required tags in an HTML document are the <HTML> ... </HTML> tags. This tells our browser that everything in between is a HTML document, or web page.
The head tags define the header portion of your document, the header contains information about your document that is not displayed in the main browser window, the title for example.
The title of your document goes between these tags and will be displayed on the title bar of the browser. Document titles are often used for browser bookmark or favorite files, and also for some Web search engines so it's recommended to use descriptive titles on all your pages. The title tags are placed in the header portion of a document..
The body tag is the first tag following the closing </HEAD> tag. The body tags enclose everything that will be displayed in the main browser window. The opening body tag has a number of optional attributes that define how the web page will be displayed:
BACKGROUND= specifies a graphics file that will be tiled in the background.
BGCOLOR= is the color used for the background. (See the previous page)
TEXT= sets the color of the text, the default is black.
ALINK= color of active links (links that haven't been visited yet)
VLINK= color of visited links.
There are a few attributes that are only supported by newer browsers.
TOPMARGIN= set the top margin in pixels (see the professor)
LEFTMARGIN= side margin in pixels
BGPROPERTIES=FIXED prevents a background image from scrolling.
If you were to view the source of this page, you would see the beginning looks like:
<TITLE>The Interactive HTML Tutorial, The Basics</TITLE> </HEAD>