Users should be aware that HTML is an evolving language, and different World-Wide Web browsers may recognize slightly different sets of HTML elements. For general information about HTML including plans for new versions, see http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html. For a comprehensive list of HTML elements see http://www.sandia.gov/sci_compute/html_ref.html
This document is a condensed version of the orginal document HTML Quick Reference (2|14|95) that is owned by Academic Computing Services, University of Kansas
An HTML element may include a name, some attributes and some text or hypertext, and will appear in an HTML document as
<tag_name> text </tag_name>
<tag_name attribute_name=argument>
text </tag_name>, or just
<tag_name>
<title> My Useful Document </title><a href="argument"> text </a>
<html> . . . </html>
<head> . . . </head>
<body> . . . </body>
<html>,
<head>, and <body> are actually
optional within HTML documents.
Required elements are shown in this sample bare-bones document:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<TITLE>A Simple HTML Example</TITLE>
</head>
<body>
<H1>HTML is Easy To Learn</H1>
<P>Welcome to the world of HTML.
This is the first paragraph. While short it is
still a paragraph!</P>
<P>And this is the second paragraph.</P>
</body>
</html>
|
<title> . . . </title>
<p><pre> . . . </pre>
<blockquote> . . . </blockquote>
<h1> . . .
</h1> Most prominent header
|
H1 |
<h2> . . .
</h2>
|
H2 |
<h3> . . .
</h3>
|
H3 |
<h4> . . .
</h4>
|
H4 |
<h5> . . .
</h5>
|
H5 |
<h6> . . .
</h6> Least prominent header
|
H6 |
| Normal |
<em> . . .
</em> |
Emphasis |
<strong> . . .
</strong>
| Stronger emphasis |
<cite> . . .
</cite>
| Display a citation |
<center> . . . </center> |
Centers on screen |
<b> . . . </b> |
Boldface |
<i> . . . </i> |
Italics |
<u> . . . </u> |
Underline |
<tt> . . . </tt> |
Typewriter font |
<font size="+1"> . . . </font> |
Increase font size by 1 |
<font size="-1"> . . . </font> |
Decrease font size by 1 |
<dl>
<dt> First term to be defined
<dd> Definition of first term
<dt> Next term to be defined
<dd> Next definition
</dl>
<dl> attribute compact can be used to
generate a definition list requiring less space.
| This HTML |
<DL>
<DT> NCSA
<DD> NCSA, the National Center for Supercomputing Applications,
is located on the campus of the University of Illinois
at Urbana-Champaign.
<DT> Cornell Theory Center
<DD> CTC is located on the campus of Cornell University in Ithaca,
New York.
</DL>
|
| Produces this |
|
<ul>
<li> First item in the list
<li> Next item in the list
</ul>
| This HTML | Produces this |
<UL> <LI> apples <LI> bananas <LI> grapefruit </UL> |
|
<ol>
<li> First item in the list
<li> Next item in the list
</ol>
| This HTML | Produces this |
<OL> <LI> oranges <LI> peaches <LI> grapes </OL> |
|
<a name="anchor_name"> . . .
</a><a href="#anchor_name"> . . .
</a><a href="URL"> . . .
</a><a href="URL#anchor_name"> . . .
</a>name or href attribute,
and may include both. There are several optional attributes, but they
are rarely encountered.
The structure of a Uniform Resource Locator (URL) may be expressed as:
file,
http, news, gopher,
telnet, ftp,
and wais, among others, and each resource type relates to
a specific server type. Since each server performs a unique function,
each resource type requires different additional_information.
For example http and gopher URLs will
have a structure like:
A more complete description of URLs is presented in http://www.w3.org/hypertext/WWW/Addressing/Addressing.html
To include an inline image, enter:
<IMG SRC=ImageName>
where ImageName is the URL of the image file.
The syntax for <IMG SRC> URLs is identical to that used in an anchor HREF. If the image file is a GIF file, then the filename part of ImageName must end with .gif. Filenames of X Bitmap images must end with .xbm; JPEG image files must end with .jpg or .jpeg; and Portable Network Graphic files must end with .png.
Aligning Text with an Image
By default the bottom of an image is aligned with the following text, as shown in this paragraph.
You can align images to the top or center of a paragraph using the ALIGN= attributes TOP and CENTER.
This text is aligned with the top of the image (<IMG SRC = "BarHot.GIF" ALIGN=TOP>). Notice how the browser aligns only one line and then jumps to the bottom of the image for
the rest of the text.
And this text is centered on the image (<IMG SRC = "BarHot.GIF" ALIGN=CENTER>).
Again, only one line of text is centered; the rest is below the image.
Images without Text
To display an image without any associated text (e.g., your organization's
logo), make it a separate paragraph. Use the paragraph
ALIGN= attribute to center the image or
adjust it to the right side of the window as shown below:
<p ALIGN=CENTER> <IMG SRC = "BarHot.GIF"> </p>which results in:
&keyword;
& specifies the
ampersand ( & ),
and the entity < specifies the less than
( < ) character.
Note that the semicolon
following the keyword is required, and the keyword must be one from the
lists presented in:
&#ascii_equivalent;
For an introduction to forms within HTML see: An Instantaneous Introduction to CGI Scripts and HTML Forms.
For general information about HTML, see http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html