The Library of Congress

home | what is HTML? | building HTML | file structure | resources

HTML code is what allows all users on the internet to access web pages. Consequently, there are rules that must be followed when building an HTML document.

The distinguishing mark of HTML is the use of tags. Tags are used to mark up content in order to convey information, both about the type of document as well as how content should be displayed, to a browser. A tag appears inside brackets, like this:
<STRONG>

Most tags must also have closing tags, so they're like bookends around the content. For example, if I wrote a line of HTML code that looked like this:

This coffee is <STRONG>strong</STRONG>!

It would appear in a browser like this:

This coffee is strong!

Take a look at this chart of commonly used HTML tags and explanations for their use.

An HTML document must consist of three different parts. Each of these parts are identified by an opening and a closing tag. They are:
  • HTML - neccessary to identify type of document so it can travel across the net
  • HEAD - contains all header information, including the title tag
  • BODY - contains all content, including all tags which modify text and images
<HTML>

<HEAD>

</HEAD>

<BODY>

</BODY>

</HTML>

Now, let's go to an exercise where you're going to create your own HTML document.

Top of Page

The Library of Congress | American Memory Contact us
Last updated 09/26/2002