Chapter 8
Hypertext Markup Language
(HTML)
HyperText Markup Language is a fifth generation computer language that is extremely easy to learn and employ. It is also the language of the World Wide Web, which is the reason students should have a working knowledge of it.
All documents accessed by internet browsers (like Netscape and Lynx) are written in HTML.
Only a few essential commands are needed to get started programming and linking documents.
Note that many of the commands are activated with a word in brackets. They are deactivated in the same fashion with the same word preceded by a forward slash. Also note that all commands are in brackets.
<HTML>...</HTML>
This identifies the document as an HTML document. The entire document is contained between these commands.
<HEAD>...</HEAD>
This identifies the heading of the document. What is in the heading is not visible to someone browsing the page.
<TITLE>...</TITLE>
The name of the page goes here. The title is put within the heading.
<BODY>...</BODY>
This identifies the body of the document.
<A HREF="URL">...</A>
This command links documents. The "URL" called for is a Uniform Resource Locator. It indicates the name and address of the document to be linked. A URL can identify a document in the next room or half way around the world. An example link to the University of Scranton home page:
<A HREF="http://www.uofs.edu">University of Scranton</A>
<A HREF="URL#anystring">...</A>
The optional "#" sends the browser to a particular place within the linked document (see next command).
<A NAME="anystring">...</A>
This indicates the area in the linked document to be located. The above command operates hand in hand with this command.
<A HREF="mailto:username and address">...</A>
This is a direct link to a person's e-mail account. Here is an example of the link:
<A HREF="mailto:RAW4@UOFS.EDU">Click here to send me mail.</A>
<IMG SRC="URL">
This command calls up an image designated by the URL.
The rest of the commands are generally used to improve the aesthetic quality of the document:
<UL>...</UL>
This indicates an un-ordered list. The text will be formatted as a list with each point being designated by a list element (see below). Since the list is un-ordered there will be a dot before each element.
<OL>...</OL>
This indicates an ordered list. It operates exactly the same as an un-ordered list, except before each element there is a number.
<LI>
This indicates a list element within either an ordered or un-ordered list. This command precedes every element of the list.
<P>
This indicates a new paragraph.
<BR>
This indicates a line break.
<H1>...</H1>
This indicates header level 1. The type is extremely large.
<H2>...</H2>
This indicates header level 2. The type is smaller.
<H3>...</H3>
...and smaller.
<H4>...</H4>
...and smaller.
<H5>...</H5>
...and smaller.
<H6>...</H6>
...and smaller.
<B>...</B>
This indicates bold type.
<I>...</I>
This indicates italic type.
<CENTER>...</CENTER>
This indicates centered text.
<PRE>...</PRE>
This indicates text that has been preserved with its original spacing. Normally, web browsers reformat the text to fit the viewing screen.
<BLINK>...</BLINK>
This indicates blinking text.
Here is a sample document:
<HTML><HEAD><TITLE>The Bob Page</TITLE></HEAD>
<BODY><H1><CENTER><BLINK>Bobs of the Internet Unite! </BLINK></H1></CENTER>
<P><PRE>This is a call for all people named "Bob" to show the rest of the world we have valuable links to offer. </PRE><BR>
<UL><I>Here are some Bobs who need to be heard:</I>
<LI><A HREF="http://bob.winner.com/cool#bob">Big Bob's Page</A>
<LI>
<A HREF="http://tiger.uofs.edu/department/neuro/nsstud/bob.html">
Bob Wheeler's Page</A></UL>
If you are interested in becoming a member of this page, write to
<A HREF="mailto:RAW4@UOFS.EDU">
<IMG SRC="bob.gif"><B> Bob.</B></A>
<P><H2>Non-Bobs need not apply. </H2>
</BODY></HTML>
You can browse this document at:
http://tiger.uofs.edu/department/psych/bobs.html