Here is a skeleton HTML document, containing the fewest tags necessary:
The things in angle brackets <...> are called tags or elements. Tags begin with <tagname> and end with </tagname>. The entire document is enclosed in a HTML tag. The document consists of a HEAD and a BODY. The HEAD contains various information about the document, but in this case, only the title. The TITLE doesn't show up in the body of the document, but it is usually shown in the browser's title bar. Note that HTML is case-insensitive. It doesn't case whether you use uppercase or lowercase for tags. <HTML> <html> and <HtMl> should all be viewed the same.
There are several tags which can be used in the HEAD.
The most common are TITLE, which simply includes the title for the page, and the META tag. There are two general ways to use the META tag:
<META NAME="keywords" CONTENT="html, web, internet">
The first version, using NAME="" provides information for other people, search engines, or people reading your HTML source. The two most commonly used by search engines are "keywords" and "description". The second version, using HTTP-EQUIV="" can be used to send special messages to the browser. The one above forwards the browser to another page, forwardto.html, after 0 seconds.
The BODY tag has several attributes. They are:
Those that require a color can be specified using either a color name from the list below, or a color in RGB hexadecimal. Here is a small color utility to help you with hexadecimal colors. If you specify a color with a value from 0 to 255 in the three boxes, it will create the hexadecimal code for you.
Inside the body, perhaps the most common elements are paragraphs and headings. Paragraphs use the <P> tag, which has one attribute, ALIGN. The values for align are center, left, and right. This determines where the paragraph is placed horizontally. The end tag for a paragraph, </P>, is optional, but may be required in some cases for scripting or stylesheets.
Headings use the tags <H1>, <H2>, <H3>, <H4>, <H5>, and <H6>. H1 is the most important of headings, and thus is the largest, while H6 is smaller than regular text, but usually bolder. H4 is about the size of normal text. The headings also support the ALIGN attribute, but the end tag for them is required.
PS: The HTML for the navigational bar below is: