Essential Tags Home | Cheat Sheet |

First lets define the word "tags". HTML Tags, written by a person, are deciphered by a Web Browser, where the tag defines what the browser is to display on the screen. Most tags have two parts, an opening and closing part, for example <HTML> is the opening tag and </HTML> is the closing tag. Note that the closing tag is the same as the opening tag except it contains the "/" which I tend to interperet as "end". However, there are exceptions like <IMG> where we tell the browser to display an image, which does not have a closing tag. Lets start:

There are four sets of tags that need to go in every HTML document. These are:

The <HTML></HTML> tags identify the beginning and end of an HTML document. All tags must fall between these two.
The <HEAD></HEAD> tags define the header. This is where all the important information about the document goes, eg. the META Tags, JavaScripts, Style definitions and the title of the document, etc.
The <TITLE></TITLE> tags must go within the <HEAD></HEAD> tag. Anything between the two TITLE tags appears in the title bar of your browser.
The <BODY></BODY> tags is what contains all the information on your page. All your graphics, links and plain text must go between the <BODY> and </BODY> tags.

The best way to learn HTML is by looking at examples, although you should take note of the copyright laws in your state/country before reproducing code taken from examples.

Below is a basic html document. Notice that everything falls between the HTML tags, and that the TITLE appears within the HEAD of the document.

Example: Click Here to see the example. It will be opened in a new browser window.

<HTML>
<HEAD>
<TITLE>This is the title</TITLE>
</HEAD>
<BODY>
This is everything that goes in the document!
</BODY>
</HTML>

Prev | Top | Next |

Any Questions or Comments? E-Mail me!

rhduncan@hotmail.com
http://htmlguide.drgrog.com/alpha/ Copyright © 1999 Robert Duncan