Section 3
Section 3 is intended to be a reference tool for users who already know the
basics of HTML (see section 2 for a tutorial). Please note that many viewers
support tags differently, and some (Netscape in particular) have unique tags
that other viewers do not support. Your author has tried to include all of the
standard tags, as well as the most common variations he can think of, but your
mileage may vary. You've been warned. :-)
Document Tags
Paragraph Formatting Tags
Character Tags
Definition Lists Definition Lists (also called Description Lists) create indented and
non-indented text. Note that creating a list of only Non-Indented text is useful
when we want to make a list in which the items aren't emphasized. The two parts
of a Definition list are Data Terms <DT> and Data Descriptions <DD> Ordered Lists
Ordered Lists can be used for lists of items that you wish numbered. Items in
the list are designated with <LI>
indicating that they are List Items. Unordered Lists
Unordered List is used for lists that shouldn't include numbers, but which
you want to be emphasized with bullets. As with ordered lists items in the list
are designated with <LI> indicating
that they are List Items. Tables
Special Characters There are some characters such as the left angle bracket ( <) that cannot
be displayed in HTML using normal methods. For these special characters we must
use escape mechanisms. Escape mechanisms are keywords or ASCII codes, followed
by a semicolon. When a web browser interprets the escape sequence it will
display the character associated with the escape sequence given. Listed below
are some common characters and their escape sequences. Graphics and Inline Images General form: <IMG SRC="filename" ALT="alternate text" ALIGN=top>
The source (SRC) parameter specifies the location and name of the image and
is required.
For example: The optional ALT parameter allows a text string to be put in place of the
image in text-based viewers that cannot display images.
For example: The optional ALIGN parameter specifies a relationship to the surrounding
text. Arguments to align are TOP MIDDLE LEFT
RIGHT and BOTTOM
For example: An additional attribute is the ISMAP attribute. ISMAP allows images to become
image maps in graphical viewers. When the user clicks on an image map the
client viewer sends the coordinates of the clicked position to the web server
which then sends back the document or information associated with the area the
user selected.
Because image maps require special configuration of the server they will not
be discussed in this text. ISMAP will accept one attribute: BORDER=0
this will direct viewers not to display a blue line around the image map.
The graphic at the top of DSU's home page is an example of an image map, it's
code follows:
Internal Links (within a document)
Several web browsers have the ability to send electronic mail. You may wish
to include a link at the bottom of pages giving readers the opportunity to send
you comments and suggestions by creating a mailto URL. All that you have
to specify is the email address you wish readers' messages to be sent to:
<A HREF="mailto:ant@anderbergfamily.net /I>">Click to send me
mail</A>
The most popular use for server-side
includes are counters. To include a counter on your page add the following
line in your HTML:
<!--#exec cgi="/cgi-bin/counter"-->
Creating Lists
<DL>
<DT>Non-Indented Text
<DD>Indented Text
<DD>More Indented Text
<DT>Non-Indented Text Again
</DL>
<OL>
<LI>Item One
<LI>Item Two
<LI>Item Three
</OL>
<UL>
<LI>Item One
<LI>Item Two
<LI>Item Three
</UL>
Character Escape Sequence
< <
> >
& &
" "
é é
© ©
® ®
™ ™
£ £
§ §
¶ ¶
• •
<IMG SRC="words.gif">
or
<IMG
SRC="/gifs/red.gif">
<IMG SRC="words.gif" ALT="Words of Wisdom">
<IMG SRC="words.gif" ALIGN=MIDDLE>
<IMG BORDER=0 SRC="/gifs/dsulog1.gif" ALT="DSU
logo">
Hypertext Links and Anchors
External Links (to other documents)
Other Links