Professional Documents
Culture Documents
Hypertext Markup Language
Hypertext Markup Language
Hypertext Markup Language
Tutorial Index
by Alan Frank
ROCKET SCIENCE
<HTML>
1 of 5
displayed page.>
<HEAD>
<TITLE>Retro Rocket Company </TITLE>
</HEAD>
<BODY>
<UL>
<LI><A HREF="rockets.htm">RetroRocket Product
Line</A>
<LI><A HREF="dealers.htm">Dealer Listings</A>
<LI><A HREF="history.htm">History of Retro Rocket
Co.</A>
</UL>
<HR>
</BODY>
</HTML>
HTML uses tags to tell the Web browser how the text should
be displayed. In Listing 1, the code begins with the tag
<HTML>. Place this tag at the beginning of your HTML pages;
it lets the Web browser know that the following code is HTML
and should be rendered accordingly. Note also that Listing 1
ends with the tag </HTML>. Most HTML tags are used in pairs,
with an opening tag and an ending tag to delineate which text
you want handled in a particular way. Ending tags are the
same as opening tags, but with the addition of a forward slash
(/).
2 of 5
shortcuts.
3 of 5
bracketed by the <H1> and </H1> tags, and the word Retro
immediately follows the image statement. The H1 tags cause
all the text between those tags (the word Retro is all there is)
to be rendered in Headline 1 style-the largest headline size.
The ALIGN=bottom portion of the image statement aligns the
bottom of the text with the bottom of the graphic. (You can also
use ALIGN=top or ALIGN=middle if you want a different text
position. ALIGN=top aligns the top of the text with the top of
the image, while ALIGN=middle aligns the middle of the text
with the middle of the image.)
You can use carriage returns and blank lines when writing your
HTML code to make it easier to read and understand, but Web
browsers will ignore them. This means you will have to use
HTML tags to force carriage returns and blank lines to appear
in the displayed pages. The Web browser will automatically
enter a carriage return at the end of a headline, but in most
cases, you need to specifically call for carriage returns or
blank lines in your HTML code.
4 of 5
automatically take care of numbering the ordered list, starting
with "1" for the first list item.
If you look at the HTML code for the first of the three list items,
you'll note that the opening tag (<A HREF="rockets. htm">)
gives the file name of the document to which we are linking,
while the second portion ("RetroRocket Product Line") is what
the reader sees when looking at the hyperlink via his or her
Web browser. In this case, I didn't need to reference a
complete URL, or even a path, as the file rockets.htm is in the
same directory as the current document (retro.htm).
Just below the three list items in our sample document, you will
see the tag <HR>; it calls for a horizontal rule.
5 of 5