Introduction to HTML

HTML (HyperText Markup Language) is used to write the material you have been viewing on the Web. It is a SGML-based markup langauge (SGML= Standard Generalized Markup Language. See ISO 8879).

From an earlier discussion, we mentioned that word processing is done either with a WYSIWYG word processor or a markup language. Web documents fit into the latter category.

A markup language is much like a miniature program. It gives explicit instruction in an established syntax to a machine (in this case the machine is your browser) to display information in certain ways. As an example of HTML code, consider the following.

     <html>
     <head>
     </head>
     <body>
     This is the text in my HTML document.
     </body>
     </html>
      

When formatted you see this.

HTML supports a limited number of formatting options. That makes it relatively easy to learn but limits the looks of the documents you can create. Each Web browser client is responsible for handling the HTML markup language tags correctly. Although there are standards, web brower developers are always pushing the boundaries of the technology past the standards. Thus implementations of tags, especially newer tags will differ among web browsers, and what looks good when viewed with one web browser may not look as nice or the same on another.


General HTML Tag Conventions


Commonly Used HTML Tags

HTML

Head

Body

Titles

Headings

Paragraphs

Simple lists

Definition lists

Character formatting

Force a New Line

Preformatted Text

Horizontal lines

Adding Pictures Inline

Images are added to a document with the img tag, (like the U.S. icon at the right). It is a little more complicated than the text tags we have discussed so far.

<img align=top src="name_of_image_file.gif" alt="no picture">

src
this is the url of the graphic.
align
top, middle, or bottom. This relates to how the text and graph align. Optional.
alt
this text displays if the graphic is not found. Optional.

Adding Document Links

External Graphics, Sounds or Movies

Tables

HTML and Netscape

Netscape HTML Editing Tutorials



Further Reading

There are many features of HTML not mentioned above. Most WWW clients provide a way for you to download a WWW document with the HTML tags. Find a few pages you think look good, download the document with tags, and see what tags were used.

Explore these references for more information.


Author: Judy Watson & D. Barnette
Curator: Computer Science Dept : VA TECH © Copyright 1994.
Last Updated: 4/18/97