HTML AT YOUR FINGERTIPS



© Richard Jones, August 1998



INDEX




  1. Introduction to HTML


  2. Building an HTML Document Template


  3. Basic Text Formatting


  4. Image Includes


  5. Anchor Tags


  6. Tables


  7. Advanced Text Formatting, plus Other Tags


  8. Lists


  9. Client-Side Image Maps


  10. Very Basic JavaScript


  11. Frames


  12. Forms


  13. Conclusion


  14. Reference List


  15. Glossary of Terms



INTRODUCTION TO HTML




What is HTML?

HTML stands for HyperText Markup Language, and is one of the standard languages of the internet. HTML cannot perform the many tasks that real programming languages perform, it is, as the name suggests, simply a markup language. That is, that it can take text and images and arrange them and format them into the way that you want them to look. It is becomming more and more powerful as it is developed further and further, though.


How does it work?

All HTML commands appear between angle brackets, < and >:

<*HTML*>

like so, where *HTML* is whatever command you are using at that point. A web browser will begin reading an HTML document at the beginning, and work through it, like we would reading a page of a book. When it encounters a tag, it will apply the effects of that tag to everything that comes after it, until it encounters a tag that ends the command. For example, if you are centering text, then you will turn on the center tag:

<center>

And all this text will be centered, until it encounters the end centre tag, usually denoted by the starting tag with a "/" before it, thus:


</center>

It must also be noted that although HTML was developed in Cern, it was decided that American spellings of some words should be used to standardise it, this menas that the spelling of some of the tags is in American spelling, such as <center>, shown above, and <color>, when declaring colours.

This Tutorial

In this tutorial, I am going to work through the basic ideas of HTML, and teach some of the most widely used, and useful tags. Every example that we come across will more than likely work differently on different browsers, so it's worth while trying out the examples, and seeing what happens, as the results you get may differ from mine.

Finally, when building a website, it is best to do it on your machine, rather than directly onto the web. The way to do this for most browsers is to type:

file:/

into the location bar at the top of your browser window, followed by the full directory and file name of the file that you wish to look at. Then simply edit the file with some sort of text editing application, and read it with your web browser. Then, when you've updated your file, you'll simply need to press "reload", and the browser will reload the file. If you've made some changes in the file, but "reload" doesn't cause the page to look any different, then you will need to empty your disk cache, before continuing, or find out how to tell your browser to load directly from the source, as opposed to from it's cache.




HTML DOCUMENT STRUCTURE



Starting Out

The first tag that you need to know for HTML is:

<html> and </html>

These two tags tell a web broswer that everything it reads after the HTML tag is to be read as an HTML document, and not as a plain text document. So when you write any HTML file, you must always begin it with <html> and end it with </html>. Everything else on the page goes in between.

All HTML documents follow a certain form. They all have a header and a body. In this section of the tutorial, we will look at how these both work, and the parameters that you can define for each one.



Header of a document

This part of the page is defined first, and is enclosed by the following tags:

<head> and </head>

Although the head is not actually an essential item in a page, it is good to have it, as here you can define the name that goes in the title bar at the top of the browser, and JavaScript functions.

Using the tags:

<title> and </title>

You can define what the browser displays in the title bar at the top of the window. For example, if you were to put:

<head>
<title>HTML Tutorial</title>
</head>

Then in the case of Netscape, the title bar would something like the following:

Netscape: HTML Tutorial

or:

HTML Tutorial - Netscape

This is a good way to let search engines know what your page is called.

There are other things that can go into the header tags, but for the purposes of this tutorial, I shall leave them out, as they are not so fundamental.


Body of the Document

Again, the body of a document in not an essential item, but if it is not defined, the the page will revert to default settings, which are not that pretty to look at.

The beginning and end of the body of the document is given respectively by:

<body> and </body>

and all other page contents go inbetween.

The body tag is the first tag that we have encountered so far, that can have parameters set, to define how it is going to act, and that's what I'd like to look at next. Here, we can learn how to define a background colour or a background pattern, as well as text and link colours.

So, our body tag would look something like this:

<body background="back.png" bgcolor="white" text="black" link="red" vlink="blue" alink="green">

Note, that you can define a background image, and a background colour. The reason for this is so that people who are browsing without downloading images will still get a coloured background, as opposed to the default. Also note that if you do not define any one of the above parameters, then they will simply take their default values. Text becomes black, and the links become various shades of blue. Sometimes that is what you want, so in those cases, it is easy just not to define them in the body tag.

There is one more thing that you will need to know for opperating the body tag succesfully, and this will also have relevance in other parts of this tutorial, and that is the use of colours. Above, I've defined the colours by using words. This is OK, as long as you don't want to do anything fancy.

Defining Colours

If you want to use any colour that the computer can produce, then you need to be able to define any one of the 16.7 million available with ease. To do this, we have to use a hexidecimal code to represent the quantities of red, green, and blue in the colour. For each primary colour, we assign a two digit hexidecimal number. A hexidecimal number can be any of the following: 0123456789abcdef, so a two digit hexidecimal number can represent as much as 255 in decimal terms.

We lay out the colour declaration as follows:

	RR	GG	BB
#	**	**	**

where the *'s represent a digit from 0 - f.

Here are some examples of hexidecimal colours:

Red: #ff0000
Green: #00ff00
Blue: #0000ff
Yellow: #ffff00
Cyan: #00ffff

In total, there are 16.7 million combinations of the above 6 digit code, for you to use on your website. So, the body tag that we built earlier could also be written:

<body background="back.gif" bgcolor="#ffffff" text="#000000" link="#ff0000" vlink="#0000ff" alink="#00ff00">


DOCUMENT STRUCTURE EXERCISE



Now that you've seen how to create a document in HTML, it's time to do one for yourself. Here's what you have to do:

Create a document that has the title "My First Document". Make the background white (don't worry about an image background, you can try them out at your own leasure), leave the text as the default colour, and make the links red. When the link is clicked on, we don't want it to change colour as it is activated, but once the link has been visited, make it a darker shade of red than before it was visited. Try and do this using hexadecimal code for the colours.

For the moment, you won't be able to see if the text has worked out as you want it, as there's no text there yet for you to look at, but as this tutorial proceeds, you will soon find out if you've made a mistake.




BASIC TEXT FORMATTING



Putting Text in your HTML Document

Once you've built your document, you are ready to start putting things onto your page. Undoubtedly, you are going to want to have some text. HTML will, by default, print any text in one continuous line, wrapping at the edge of the browser window to a new line, no matter how many spaces or hard returns you put in the text document from which the browser is reading. It is here that you need the text operators to deal with formatting the text as you want it.

Here are some of the most important text formatting tags that you will use:

<b>text</b> - Make the text BOLD

<i>text</i> - Make the text ITALIC

<u>text</u> - UNDERLINE the text

<pre>text</pre> - PRE-FORMAT the text spacing, that is, keep a fixed width font, and take notice of multiple spaces, and hard returns. This may sound useful, but beware, as variable widths on browser windows, and different default fonts can cause this to look strange.

Note that these tags can all be used in conjunction with eachother, so for example, if you were to have:

<pre><u><b><i>Text</i></b></u></pre>

Then the word "Text" would appear as a bold, italic, underlined, fixed width font.

Note the use of strict nesting of tags inside one another


Arranging Text

Now that you can format the style of text, you will need to deal with the spacing of the text. Here are the tags that you will need for that:

<br> - Line Break. This has no closing tag. For each BR tag, the browser inserts a line break, and then continues reading the rest of the HTML document.

<p>Text</p> - Paragraph break. This makes the text between the tags into a paragraph, and thus inserts a line break before and after the text.

<center>Text</center> - Centres the text (or any object, for that matter) between the tags.

<h*>Text</h*> - Header Tag, where * stands for a number between 1 and 6, where 1 generates the largest text size, and 6 generates the smallest. This tag also generates a line break when it is turned off.


Fonts

Note that this tag is Netscape specific, and will have no effect on any other browser

Finally, we can adjust the size, type, and colour of particular bits of text in the document using the following tag:

<font size="*" face="selection1|selection2|selection3" color="colour">
Text
</font>

Here, * stands for a number, between 1 and 7. You can also insert a + or - in front of the number, if you want to make the font size relative to the base font of the page.

The face section allows you to define 3 different selections of the type face that you wish to use. If the browser does not have selection 1, then it will look for selection 2, and then selection 3. If none of the font faces are found, then it will revert to the default system font, which can vary from machine to machine, and the user's preferences.

The color section allows you to define the colour of the text between the on and off font tags. It works exactly the same way as we talked about in the last section, with a choice between predefined colours, and hexidecimal declarations of colour. Don't forget to put the "#" before the hex-code though, if you use it.

If you don't define any of these values, then each section will remain as it has already been defined. That is, at default size, and font face, and the same colour as defined in the body tag. As soon as the font tag is ended, then all text after that will revert to this as well.


Commenting

Finally, as you build larger and larger, and more complex files, you may find it hard to see exactly which section of the page you are looking at, when looking at the source. To help you round this, you can comment as often and as much as you like, and hide all those comments from the browser, so that it does not interpret them:

<!-- Place your comment here -->

Everything between <!-- and --> will be hidden, no matter how far apart then beginning and ending tags are. Get used to commenting often, as it will help other people understand what you've written.




BASIC TEXT FORMATTING EXERCISE



You've now seen some of the easier things that you can do with the text formatting abilities of HTML. Now it's your chance to implement them. Using the HTML file that you started in the previous exercise, do the following:

Make a header for the page at a reasonable size, and centre it. Have it say: "Welcome to my Homepage" or something similar. Now have some text that isn't centred, and make it a paragraph. In that paragraph, write something, and have some of the text in bold, some of it in italics, and some of it underlined. End the paragraph, and have a few line breaks before putting "End of Page" in the centre, at the bottom. Comment each secion of the page appropriately.

Now you'll be able to see your text at the default colour of your browser. From now on, you'll be updating that same document at each exercise, so don't delete it.




INCLUDING IMAGES



The Image Tag

You aren't just going to want a website entirely made of text. It would be uninteresting to look at, and wouldn't carry as much weight as a website that backed up its information with pictures. You do have to be careful, though, as the image has got to download, so for people with slow web connections, or servers that are running slowly, large images can take a long time, and become irritating, so it's best to keep your image sizes (and your page sizes for that matter) as small as possible.

To place an image on your page, you need to invoke the image tag:

<img>

This is another tag that not only does not have an "off" command, but can take parameters within the brackets. In fact, this tag by itself will achieve absolutely nothing, as it has no reference to the image that you want to display. Here are the parameters that you can set inside this tag:

So here, as an example, is a possible image tag:

<img src="image.jpg" alt="My Image" width="100" height="100" border=0>

Also, be aware that the internet is not very tolerant of images. Good client software will be able to cope with any image, but if you want to be on the safe side, GIF format or JPG format are the most common at the moment, but GIF format is being phased out shortly.




IMAGES EXERCISE



Now you'll want to have a picture on your website, it's time to have a go at putting one there:

Place an image in between your heading and you paragraph of text. Center it, and define it's height and width. You don't actually have to have an image to use here. If you define the height and width, a template for the image will appear, and nothig will appear in that image's space. So just define an image name that doesn't actually exist, and tell the computer that it's 100 pixels wide by 100 pixels tall. Have the alternative text say: "Your Homepage Builder", and leave the border width to default. Leave as much space around it as you see fit, and don't forget to comment. Also, try and keep the amount of HTML that you use to a minimum, to optimise the loading speed of the page.

From now on, I'll not remind you to comment your pages, but you should get into the habit of doing it.




ANCHOR TAGS



Page Links

These are probably the thing that HTML is most well renowned for. Anchor tags allow you to define links, that, when clicked on, take you to another page on the web. Here I shall be teaching you the different types of anchor tags, and how they are used. I'll start with a basic hyperlink:

Using the following code, you can define a link to another website:

<a href="http://www.newpage.com/">Link Text</a>

Here, <a> is the anchor tag, and </a> is the end anchor tag. Make sure that you always remember to end an anchor, or everything else on your page after the link is defined will become part of that link.

The anchor tag cannot be used without defining the parameter, which is "href", meaning "hypertext reference". After that you simply place the location of the file or website that you want to link to, type the text that you want to act as the link, and then insert the ending tag.

That's about as hard as anchor tags get.

Mail Links

Here is another useful form of the anchor tag:

<a href="mailto:person@address.com">Mail Me!</a>

Here, instead of putting a URL, we can put an email address, as long as we put the "mailto:" protocol in front of the address. This will attempt to open a new email window in whatever the user's default mail tool is.

Targeting

Later on we will learn to use frames, and then the use of anchor tags can become a little more complex, but in order to make it easier, I'm going to teach you what you need to know about opening links in different sections of the webpage now. All you need to do is use the "target" function. This function can be used outside of a frames page, to open a new browser window in which to view a link. Let me demonstrate:

<a href="http://www.url.com/" target="display">Link</a>

Here, "display" tells the browser to open a new window, and display the link in there.

Indexing your Page

Finally, there's the issue of indexed pages. If you have created a page that is quite long, or has a lot of sections, then you may want to have links at the top of the page to take the reader down to the relevant section, or at the bottom, to take them back to the top. There are two things that you need to know to achieve this. The first is that for a link to work, it must have a location to go to, else it will return an unfound error when you click on it. This means that if you are linking to further down the page that you're already on, then simply putting in the URL of that page is insufficient, because it will always take you to the top of the page. What you have to do, then, is label the section of the page that you wish to link with an anchor tag, thus:

<a name=section>

And in this case, you do not need to use the </a> tag.

What this has done is told the web browser that from that point on in the HTML is part of the section "section", and that if that section is linked to, then to put the next bit of HTML at the top of the page, and then carry on as normal.

To link to this, the second thing that you need to know is that links that occur within a page are written thus:

page.html#section

Where the "#" tells the browser that once it's loaded the page "page.html", it's to look for the section "section". So you would write the following:

<a href="page.html#section">Go to Section</a>

.... Various bits of HTML ...

<a name=section>

...Relevant HTML for section

Note, also, that anchor tags are not just for text, they can be applied to images also. As I said briefly in the previous section, you can turn off the border around images if you've used them as a link. You cannot, though, turn off the underlining of a link in text (except with the use of style-sheets, which we shalln't go into here), it will always appear as you have defined it in the body tag.




ANCHOR TAGS EXERCISE



OK, now it's time to get some links onto your website:

Turn your image into a link to another page of yours (the page doesn't have to exist, you'll just get an "unfound" error if you click on it - don't worry about it), and don't adjust the borders on the image. Then, underneath your paragraph of text, create a header that's smaller than the main header, and says "Links" - don't centre it. Underneath that, create a link to:

http://members.tripod.com/~Drahcir/

And have the link text say: "Drakir's Homepage".

Underneath that, have a link that opens a mailer window, with your email address already in the "To:" field. Have the text say something like: "Email Me: Your email address".

Now, at the top of your page, create an indexed point, and call it whatever you like. Then, at the very bottom of your page, leave a few line breaks, and put "Back to Top of Page". Make this a link that returns the browser to the index point that you've just created. This will only look like it does something if the top of the page is not at the top of the screen when you click it. You may need to readjust the window size to test it.

It is now that you find out if you've got your link colours right from the first exercise. If you havn't, try and change them. If you don't like them, then feel free to go ahead and change them to something you do like. Likewise with the text.




TABLES



Starting your Table

Tables are very useful functions in HTML. They allow for the convenient presentation of images and text in an organised fassion without too much hassle. Here, I'm going to teach you everything that you will need to know for now about tables, which will make this lesson the longest so far, as they are extremely versatile.

When you begin and end a table, you will always need to use:

<table> and </table>

The TABLE tag is a tag that has a lot of optional parameters, which we shall look at now:

A possible table tag, therefore, could look something like this:

<table width="50%" height="500" border=1 cellpadding=5 cellspacing=5 align=left valign=top background="table_back.gif" bgcolor="#ffffff" text="#000000" link="#ff0000" vlink="#00ff00" alink="0000ff">

....Table Contents ....

</table>

Remember, of course, that all of these parameters are optional, and if you leave any out, then they will return to a default value, whilst the colours of text and links and so on will remain as defined in the body tag.


Table Rows and Table Data

Now that you can define your table environment, it is time to learn how to put things into your table. The two tag pairs that you need to know are:

<tr> and </tr> - Table Row

<td> and </td> - Table Data

The way that these tags, and indeed a table, works, is that you define a table row, and then you divide that row up into cells, thus:

<table>
	<tr>
		<td>
		Contents of cell 1
		</td>
		<td>
		Contents of cell 2
		</td>
	</tr>
</table>

And of course, you can define as many rows and cells as you want to.

Each one of these tags has many parameters that can be set. Here are the parameters for <tr>:

All parameters specified in this section will only be in effect throughout that particular table row. As soon as you end the row, then the values will all revert to what they were before.

So a possible table row tag might look like this:

<tr width=50% height="200" align=right valign=middle>

You won't find that you use many parameters in the TR section, but rather, that you'll put most of them in the TD section. Here are the optional functions for that:

This means that you may find a TD tag that looks something like this:

<td width=50% height="200" align=center valign=bottom rowspan=2 colspan=2 nowrap>


Table Headers

The final tag that you need to know for creating tables, and actually a tag that you may not use much is:

<th> and </th>

This stands for Table Header, and acts in exactly the same way as table division (so see above for the parameters that can be used), except that the default for the alignment is "center" rather than "left", and the text is automatically bold, so does not need to have a bold tag inside it.


Table Layout

To end this section, we need now only understand the way in which tables must be laid out.

Whenever building a table, you must perform it in the following order, before you can enter any contents:

<table>
	<tr>
		<td> or <th>

This is the point at which you can enter your first text. Then you can declare as many table divisions as you want (remembering that they've all got to fit on the page, side by side), before moving onto your next table row. You must make sure, though, that you do things in the right order. A good way to keep track of where you are in a table is to indent each section as you go, so that you can see whereabouts in the table you are:

<table>
	<tr>
		<td>
			Contents
		</td>
		<td>
			Contents
		</td>
	</tr>
	<tr>
		<td>
			Contents
		</td>
		<td>
			Contents
		</td>
	</tr>
</table>

So you can probably see that if I were to enter the right parameters, then the above code would produce a 2 x 2 table grid.

Tables can be interpreted strangely by browsers, so it's always a good idea to play around with them until you get it right. Be aware that different browsers will have the table looking different to other browsers. It may also be necessary to specify the default values just to make sure that the table appears correctly.




TABLES EXERCISE



To make your page a little more interesting to look at, we're going to use a table. Have a go at the following:

Create a table, that starts at the very top of the page, excluding the anchor tag there, and spans across the whole width of the page. We want to make it so that there are three cells in the first table row. So create a table with no borders, but with cellpadding of about 8 pixels. Leave the alignment to default.

Now in the first table row, create a cell that is 10% the width of the page, and set it's background to a colour of your choice. I recommend a light colour, that's easy on the eyes. Now define another cell, into which all the information on your page should go, apart from the "End of Page" text, and the "Back to Top of Page" link. Leave this cell with default background colour. Then create a third cell which you should make identicle to the first cell.

Now you want to create a new table row, and in that table row, create a singe cell that spans across the whole table, and in this cell, you should put the bits of your page that didn't go into the cell above. Now set the colour in this cell to be something else, that hopefully complements the other colours.

Now feel free to adjust the sizes of the table cells until you think that they're right for your page. You may also find, that the first and last cells in the first row don't come out the colour you want them to. In this case, it is necessary to put something between the TD start and end tags. I recommend:

&nbsp;

Which is a non-breaking space, and shouldn't cause any problems with the table.




ADVANCED TEXT FORMATTING



Alignment of Text

This section is more of a reference to the less common, and more advanced text operators provided by HTML. Explanations will be forthcoming if necessary.

Now that you've seen alignment parameters in the case of tables, here are a few other places that the alignment option can be used:



Other Text Operators

Finally, here are some other text operators which you may want to use at some point:

There are lots of other tags that you may come across, and as you discover them, then you can add them to your list of potential commands. For now, though, these are quite enough to put your text into almost any format that you desire.




ADVANCED TEXT EXERCISE



Now it's time to spruce up the text on your page a little.

The first thing that you shoud do, is align your paragraph of text to the centre of the page. Next, you want to place some text next to your image, so uncentre the image, and wrap some text around it, starting from the top of the image, leaving at least 5 pixels all the way round it. In that text, you should have some text that's struck out, some fixed width font, some subscript and some superscript. Now in the bottom cell of your table, use whatever method you like to align the "End of Page" text to the right, leaving the rest of the text where it is.

This is all fairly simple, and shouldn't cause any problems. Although you may find that the wrap around text on the image can upset the order of the rest of your page. The way to deal with this is to build a single cell table around both the text and the image, and that way, everything else on the page is separated from it. Have a go and see what happens.




LISTS



There are several different forms of list. There are ordered lists, unordered lists, glossary lists, menu lists, and directory lists. Here we will only look at the first three, as the others are not widely used, or vastly different.


Ordered Lists

Also known as numbered lists, they are, by defualt, numbered by most browsers.

The tags that start and end ao Ordered List are:

<ol> and </ol>

Each entry in the list must be started and ended with an <li> and </li> tag, meaning "List Item".

When declaring the OL tag, there are several optional properties available:

So an ordered list might be coded like this:

<ol compact start=5 type=i>
	<li>Item 5</li>
	<li>Item 6</li>
	<li>Item 7</li>
</ol>

Which would look something like this:

  1. Item 5
  2. Item 6
  3. Item 7


Unordered Lists

These begin and end with:

<ul> and </ul>

This looks a bit like the Ordered Lists, except the List Items are not numbered, and they are not gauranteed to be in the same order as they are entered in the source. The parameters that can be called are:

Again, you will need to use the <li> and </li> tags, so you might write something like this:

<ul compact type=square>
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
</ul>

Which will look something like this:

Which you should recognise from the format of parts of these pages.

With regard to the <li> tag, you can define the type of bullet or number that you want in there, depending on whether you're using an Ordered List or an Unordered List. Simply apply the relevant "type" specification for the type of list that you're using:

Eg:
   	<li type="A">Item</li> for Ordered lists
	<li type=disc>Item</li> for Unordered Lists

Glossary Lists

These are sometimes also known as Definition Lists, because they consist of two tags for the List Items (the <li> tag is not used here), one as a term, and one as a definition.

They begin and end with:

<dl> and </dl>

With the only preference being "compact".

The other two tags are:

<dt> - Term

<dd> - Definition

Neither of these tags have a closing tag. The way that it is structured is as follows:

<dl compact>
	<dt>Term 1
	<dd>Definition
	<dt>Term 2
	<dd>Definition
</dl>

Which might look like this:

Term 1
Definition
Term 2
Definition



LISTS EXERCISE



Lists are a good way to present information such as links, so that's what we're going to do here.

Beneath your "Links" header, create an Unordered List, and make each link that you have there into a List Item, with a single blank line in between each entry (hint: it's not that hard, just think line breaks). Add some more links. They don't have to go anywhere, just put them there to pad out the list. Now, create a sub-list underneath one of your List Items, and make it an Ordered List, starting couting at 1, in Roman Numerals, and have a few entrys, it doesn't really matter what.

Once you've got this idea of lists, then they're all easy, because they're all the same in their basic format.




CLIENT-SIDE IMAGEMAPS



A Client-Side imagemap on your page is a useful way to implement a neat looking point and click environment. An imagemap, basically, is a picture on your page which has links to other places from different parts of the image. Building an imagemap can take some time, although the theory is not at all complex. The problem is that you are going to have to work out coordinates, in pixels, for each section of the picture that you want to use.


Defining an Image as an Image Map

Let us start at the beginning, and explain how to declare an image as an image map:

First, we do not declare the image as a link using an anchor tag, instead, we put a parameter inside the IMG tag that tells it to look for an image map to apply. This parameter is the "usemap" function:

<img src="image.jpg" alt="clickable image-map" usemap="mapfile.html#map1">

What "usemap" does is act as a pointer for the browser to obtain the map information. You can either have an entire HTML file dedicated to your page's image maps, which is what's done above, with the file mapfile.html being refered to, or you can place the map in the same HTML file as the one that the actual image is called from. Either way is just as good. No matter which method you use, though, you will have to make sure that you point the browser at the right part of the document. As you can see above, the map file name is suffixed by "#map1". If you remember from the section on anchor tags, this is the way to direct a browser part way down a page. This is how we direct the browser to the right image-map information. We select a name for the image map, in this case "map1", and call it that. But you should get into the habbit of calling these things meaningful names, so that you can follow what you're doing more easily.


Declaring the Data for an Image Map

For the browser to find the information, we need to make sure that we've labeled the it. This is done as follows:

When declaring the information for an image map, we store it between the tags:

<map> and </map>

Inside the MAP tag, we must define the parameter:

name="name"

Where in the case of our example we would have to put:

<map name="map1">

...Map Information...

</map>

To provide the browser with the map information is the most involoved part of this function. You will need to define the area that the link should cover, and the location to which it should take you. The tag inside which all this will go is:

<area> - It has no closing tag.

And the parameters that you have to put in are as follows:

It is also helpful to remember that if you've got two areas that overlap, then the one that was defined first is the one that will take precedence. This is especially important with regard to the default shape, which should be defined last.

So a typical image map data section might look something like this:

<map name="map1">
<area shape=rect coords="100,80,200,100" href="location1.html">
<area shape=cirlce coords="300,50,50" href="location2.html">
<area shape=poly coords="100,0,300,0,300,100" href="location3.html">
</map>

The hardest part about producing an image map is probably working out which pixels you're trying to refer to for each link.




IMAGEMAP EXERCISE



We already have a small image on our page, so what you need to do, is define it as an imagemap, and then we can go on and define all the areas. Keep the map definition in this same HTML document. It's probably a good idea to keep it out of the way of the rest of the page, so either put it right at the top, or right at the bottom.

What we want to define is a circle that has it's centre in the centre of the image, and has a radius of about 40 pixels. Then we want to make the rest of the image a link to somewhere else. It doesn't matter what locations they are that you link to, at the moment. At this point, you may want to set the image borders to 0, and add to the alternative text that this is now an Imagemap.




VERY BASIC JAVASCRIPT



What is JavaScript

JavaScript is a high-level interpreted script language. A script language is a kind of programming language used to control existing applications, and allow you to make more elaborate/powerful use of the existing features. Unlike HTML, it has functions, and variables, and all the other things that programming languages have. Here, we shall not be looking at it in very great depth. In fact, we'll barely be scraping the surface of this very useful language.

All we're going to learn here is some handy little commands that can make your website just that little bit better. We won't go into how the JavaScript is working, just how to use a few things.

Another thing to bear in mind is that JavaScript is becoming more and more widespread, but at the moment, the only browsers that will fully support it are Netscape browsers. Others should be able to use the functions that I am going to show you here, and if they don't it won't cause any problems, but for full effect, Netscape is the one to use.

Inserting JavaScript

First, you need to understand how to make a browser realise that something is JavaScript, and not HTML. This can be done in three ways. The first, and most important, with regard to actually writing scripts in JavaScript, is by placing all the script in the header. We use:

<head>

<script language="JavaScript">

<!-- Hide JavaScript

...Place JavaScript Here ...

// unhide JavaScript -->

</script>

</head>

What's happening here is that inside the header section of the HTML document, we are placing a tag: <script> and </script> between which any non-HTML will go. At the moment, you do not have to put language="JavaScript", as there are no other script languages that are inserted in the same way at the moment. This does not mean that that won't change, though, so it is good form to get used to putting this in.

The next bit that's happening is that you're using an HTML comment opening tag. This is so that a browser that does not understand JavaScript will not see any of the code, and so won't get confused. It will not understand the <script> tag, and thus will ignore it, and will then come across a comment, and not interpret anything between that point, and the comment ending tag, which I shall talk about in a moment. A browser that does understand JavaScript will see the <script> tag, and interpret everything between the start and finish tags as JavaScript. As the <!-- tag is not JavaScript, then the browser will ignore it, and simply interpret the script.

Once the script is finished, the browser will come across the unhide JavaScript tag. The // is a comment in JavaScript, so the browser will ignore that line if it understands JavaScript, and if it doesn't, all it will see is the end comment tag for HTML, and will then continue to read the rest of the HTML document.

The other way to place JavaScript on a page is to put it in the body, in exactly the same way as above. We won't be using this method here, though, so I won't go into it.

Finally, we can place JavaScript commands inside HTML tags. This is OK, because if the browser doesn't understand JavaScript, it will simply ignore the command, and act as if it was not even there. So, for example, you could have:

<a href="location.html" onmouseover="JavaScript function";>Link Object</a>

We'll come onto the workings of the JavaScript function in a moment, but what you need to understand here is that the action "onmouseover" is called, and if the browser doesn't understand it, it will simply ignore it, and treat the above just like any other link, which is fine.


Window Alerts

Now that you know how to put JavaScript into a document, lets have a look at some functions that you may find useful. The first is Window.Alert:

Window.Alert

If you wish to have a popup window that says something like "This page is still under construction", then you can do that using the alert function in JavaScript. The syntax is as follows:

window.alert("Enter Your Text Here");

To enter it into the page, either simply put it inside the <head> section of the page, in the bit where it reads "...Place JavaScript Here .." , where it will be executed when the page opens, or you can put it inside an HTML tag. We'll see how that is done in a minute.


Window Status

The other window function that is useful is the status bar:

Window.Status

At the bottom of most browsers, there is a status bar. This is the bar that tells you where the browser is going, and how quickly things are loading, etc... If you wish to change what appears in this bar, then you can use this function, as follows:

window.status=Status Bar Entry Here";

Again, either enter this at the beginning, in the <head> section, or put it inside the HTML tag. We'll come onto how to call those functions now, with the "On" events:


"On" Events

There are several different types of what we're calling "On" events here. These are events which depend on where your mouse pointer is at any point. Here are the ones that you might find useful at this stage:

There are many more, but they are less often used, and if you want to learn about them, then a JavaScript tutorial would be a far better way to do it. Note also, that I've specifically stated that these events only ocurr in links. At the moment, links are the special places where JavaScript takes most of its input. Bear in mind that this may change in the future.

These "on" events are the commands that will call the JavaScript functions that have been described above, when inserted into an anchor tag. The syntax is as follows:

OnMouseOver="window.status='Text';"

There are several things to be aware of here. First, the OnMouseOver is just one of the events, and you can use any of the ones above here. The same is also true of the window.status function. Secondly, you will note that when we spoke about the syntax for the window functions, we used "Text", in order to define the text that is displayed by the function. Here, we've used 'Text' instead. This is because " and ' are interchangeable in JavaScript, but they must always come in pairs. As we've had to surround the window function with "s, we cannot use them again inside the brackets. If we were to try and use them again, the browser would return a JavaScript Error, so we must use ' instead. Finally, all JavaScript commands end with a ;

So this is what this script would look like inside a link (note that also, these events can only be used inside <a> tags or <area> tags):

<a href="location.html" OnClick="window.alert('Going to location.html');"> Link Text</a>

That is probably all you need to know at the moment about JavaScript.




BASIC JAVASCRIPT EXERCISE



Right, lets try and use all the JavaScript functions that we learnt in the last exercise. If you don't have a JavaScript enabled browser, then you may just simply want to skip this exercise. But for those of you that do ...

Place a Window.Alert in the <head> of the document, so that when the page loads, you get a window come up saying "This Page is Currently Under Construction". Inside the <area> tags of the imagemap, make it so that when you put your mousepointer over the relevant section, the status bar tells you where that link takes you. Then, in one or more of your links at the bottom of the page, create a function that opens an alert window when you click on it, telling you where you're going. And finally, over your "Email Me!" link, make it so that if you put your mousepointer over it, and then move it away, it brings up a window saying "Oh go on ... Please Email Me!".

One thing to note is that if you use a ' in the text for either a window.alert or a window.status, then you should put a \ in front of it, so that the browser knows not to interpret that as part of the JavaScript.




FRAMES



Setting up a Frameset

Frames are a useful way of presenting information to the reader. They allow for you to maintain a static HTML front end, whilst other parts of the page change, and for the user to adjust the arangement of the screen to their satisfaction. You must be aware, though, that many browsers do not support frames, so we must make allowances for those users.

The way that a frame works, is that it replaces the <body> section of an ordinary HTML document, so you do not have to define your body preferences here. Instead, the frames document that you create will draw its source from other HTML files, and place them inside the windows that you create in the browser window, and those are the files in which you must define the body attributes.

So, instead of a <body> and </body> document, you have a:

<frameset> and </frameset>

document.

Just like the BODY tag, there are preferences that you can set inside these tags:

So a frameset could look something like this:

<frameset rows="100,*,100" border=0 frameborder=yes bordercolor="#000000">

...Frame Information ..

</frameset>

You will notice one thing about this, and that is that although there is a declaration for the rows, there is no declaration for the columns. This is because you cannot define rows and columns in the same frameset tag. You will need to include a separate frameset tag to work inside one of the frames defined in the first frameset tag. This is called nesting, and we will look at this in more depth in a minute.


Defining a Frame

Once you have declared your frameset, you must define the properties of the individual frames. This is done using the following tag:

<frame>

The properties of this tag are as follows:

So a potential frame set up might look something like this:

<frameset cols="20%,80%" border=0 frameborder=2>
<frame src="frame1.html" name="left" scrolling=no noresize bordercolor="#000000">
<frame src="frame2.html" name="right" scrolling=yes>
</frameset>

There are several things that you should understand about this. First, the way that a browser allocates frames means that the frame that has been named "left", as it is declared first, will indeed end up being put in the left hand frame, thus the second frame, named "right" will end up in the right hand frame. This is because it allocates the frames just like you would read a book. left to right and top to bottom. So, for example, if we were to exchange the "cols" parameter for a "rows" parameter, then the frame labelled "left" would end up in the top frame, and the frame labelled "right" would end up in the bottom frame.


Frame Structure

This leads us on to a very important structuring technique, that you will need to build frames that consist of both rows and columns of frames.

To define a frameset with both horizontal and vertically partitioned frames, you must put one frameset inside another, just like you put the FRAME tag inside a frameset. The only thing that you must remember is that once you've declared the first frameset, the browser will put all subsequent frames and framesets into the window that it's ready to work on next. That is, if you are defining a page with a vertical frame on the left hand side as an index, for example, and then want to split the larger frame on the right into a top frame and a bottom frame, you would have to allocate the FRAME information in the left hand frame before allocating the FRAMESET in the right hand frame. Then you could proceed to allocate the FRAME information for the second frameset in the same way. You can have as many sub-framesets as you want, but remember that you've only got a little bit of space to play with in a browser window.

So here's one way that you could perform the above suggested layout for a frames page:

<frameset cols="100,*" border=1 frameborder=1>
<frame src="left_index.html" name="index" scrolling=auto>
<frameset rows="*,90" border=1 frameborder=1>
<frame src="main_frame.html" name="main" scrolling=auto>
<frame src="bottom_bar.html" name="bottom" scrolling=no>
<!-- End Second Frameset --></frameset>
<!-- End First Frameset --></frameset>

[Note that you must have the right number of </frameset> tags, and remember that the last one opened is the first one closed, and so forth, as I have commented in the code]


Targetting Links

Now that you can create almost any frames page (there are other, more powerful applications of frames, which involve Dynamic HTML [dHTML], but we shan't discuss that here), the last thing that you need to know is how to link between them. We've already seen the option that you need to use. Inside the <a> tag, or the <area> tag, we can use the parameter "target". You already know that if you set:

target=display

Then a new browser window is opened. All we do is put the target parameter in as follows:

target="Frame Name"

So a link from the side frame in the above example, that changes what appears in the main frame, would appear in the HTML document that fills the side frame (here, it's left_index.html) would look like this:

<a href="main_frame2.html" target="main">Link</a>

If you don't put in a target for the link, then the HTML document that you call will be opened in the same frame as the link that you clicked on, just like it would if you click it in a non-frames window.

This is all fine, until you want to go to a page that you don't want to appear inside the frames document. In these cases, you must set the target as "_top":

<a href="http://www.otherpage.com/" target="_top">Link</a>

And that is how you use frames. Often, for most websites, you will only need to build the one frames document into which to place all the information on the page. Remember that the frames document must be the document that the browser looks at when viewing the page, so it's best to name it as your index page.


No Frames!

The last thing you need to know is that once you have finished defining your frames and framesets, you ought to put in:

<noframes> and </noframes>

To allow people who cannot see frames to have something in their browser window. For browsers that do not support frames, the HTML between these tags will be what is interpreted, instead of the framesets. So in between you may want to put in a link to a version of the page that doesn't have frames, or you might want to put in a link to somewhere where the user can download a frames capable browser, if they have a platform on which it will run.

For example:

... FrameSet ...

<noframes>

Sorry, your browser does not support frames. Either visit our non-frames version of this page <a href="noframes.html">here</a>, or download a frames capable browser from <a href="http://home.netscape.com/">Netscape</a>

</noframes>



FRAMES EXERCISE



For this exercise also, if you don't have a frames capable browser, then you may want to skip it, as you won't be able to see what's happening.

OK, this is where it is going to get a little more complicated. What you're going to need to do is start a new file, and call it something different to the other one. Then you'll need to copy and paste all the <head> information in from the file that we've been creating all along.

Once you've done that, then we need to create our frameset. We'll keep it farely simple. Just define a frameset in this new document, that has two windows. One narrow one (about 100 - 200 pixels should be enough), on the left, and one main window on the right, taking up the rest of the browser window. In the left window, define the frame attributes as you see fit, but for the moment, don't define any source for that frame. Do the same for the main window, but set the source as the page that we've been building up to now. Also, it would be a good idea to remove the JavaScript from the <head> of our previous document, as it should now reside in the head of the frames page, and we don't want it appearing twice. Don't forget to name your frame windows something sensible.

Now you'll need to make sure that all of your links to external pages are targeted to take up the whole browser window, instead of getting loaded into your frames page. You needn't worry about the ones from the imagemap, as they're part of your page.




FORMS



Starting your Form

Forms are another good way to achieve user interaction on websites. A lot of the time, though, you will need to have access to a CGI (Common Gateway Interface) script that will be written in something like JavaScript, or Perl, that will process the information gathered by your form. Unfortunately, we shall not be dealing with any of that here, because it is far advanced from HTML, and requires some degree of programming experience. Here we shall just be looking at building the forms front-end to such applications.

As always, we shall start this section with a look at how to declare a forms existance, simply by using the tags:

<form> and </form>

There are a few preferences that you can set inside the FORM tag. This is the part where it can get confusing:

So a form declaration might look something like this:

<form name="form1" action="script.cgi" method="post" enctype="multipart/form-data" target="main">

...Form Fields ...

</form>

Most of the time, if you're setting up a form front-end, you will find it easy enough to find out from your server what parameters to set inside the tag.


Input Fields

Now that you can set up the existance of a form, you will want to put things in it. To do this, what you have to do is employ the <input> tag. This particular tag is very versatile indeed, so listing and explaining the attributes is going to be fairly lengthly. Here we go:

So you might see a form code that looks something like this:

<form name="form2" action="form.cgi" method=post>
	<input type=text name="text1" value="Type Here" size=50 maxlength=100>
	<input type=image src="image.gif" align=middle height=100 width=100 name="image1">
	<input type=submit name="submit" value="Send Me!">
</form>

Which would produce a form looking something like this, depending on how you formatted the layout, which I have not shown above:

Input Examples

Note that INPUT tags are stand-alone tags, and need no closing.


Menus

INPUT tags are not the only way to supply information to forms, though. If you want to have something that will look really good, then you can use a menu, which are interpreted as pull-downs by many browsers, although not all of them. The tags that control this are:

<select> and </select>

And to define the menu items, you put everything between the tags after an <option> tag. This tag has only one parameter that can be set, and this is:

<option selected>Menu Item

Which defines that menu item as being the default value.

There are more attributes that go inside the SELECT tag, though, and here they are:

So you could add this to the above code, between the form tags:

<select name="menu" size=3 multiple>
<option selected>Option 1
<option>Option 2
<option selected>Option 3
<option>Option 4
</select>

Which might look something like this:

Menu example


TextAreas

Finally, the last way to have an input field in your form is to use the following:

<textarea> and </textarea>

This is a strange function, because unlike the input tags, the text that appears as the default is typed between the beginning and end textarea tags. You'll see how it works in a moment, let us just look at the parameters that can be set.

So, you could add a textarea window now to our above form thus:

<textarea name="text_input" rows=4 cols=50 wrap="virtual">Hello</textarea>

Which produces something like:

Textarea Example

That's all you need to know to build a front-end to a form, and you can have JavaScript functions that may operate on the user's machine, that can interpret the inputs to the form, either after submission, or on the fly, but that's not for this tutorial.

The last thing that you need to know, with regard to forms is that once you define a FORM tag, then not everything between the begin and end tags has to be relevant to forms. You can define a form, and then build a table, in which to put your entry fields, and this will cause no problems. Only INPUT, SELECT, and TEXTAREA will be interpreted as form items, and everything else will act just like it did outside the form.




FORMS EXERCISE



Right, what we're going to do here is create a form that will (if you're browser supports frames) go on the left hand side of our frames page. If your browser doesn't support frames, then just ignore all references that I make to them, and just build the forms page.

First of all, create another new HTML file. Give it a header and define a background colour, and text etc... however you want them. I encourage the use of lighter colours for backgrounds, because generally they're less hard on the eyes to look at.

Give the page a heading, saying something like "My Guestbook". Now define a form, and have some text inputs for the visitors name and email address and homepage address. Then have a menu that allows the visitor to select how he came to be at your page. Then maybe a textarea of moderate size in which they can put their comments. Finally, have two buttons, one to Submit the form, and the other to Reset it. Format the layout of the page as you see fit.

Once this is done, add a link to it from your main page, saying something like "Sign My Guestbook", and have that link targetted into the left hand frame on your frames page. To make this work, unfortunately, you'll also have to create a totally empty HTML document (apart from an <html> and a </html> tag pair), and define it as the intial source of the "left" side of the frames page.




CONCLUSION



Well, now you know pretty much all you'll need to know about HTML, for the time being, at least. But knowing the language doesn't mean that you're good at writing websites. You'll need to practice, and experiment. You'll find that HTML can do strange things, and things you never expected it to do. You might also find that some things don't work with other things, and you have to make compromises. It's also a challenge setting up a page with the exact format that you want, rather than a ball park sort of arrangement.

I recommend getting yourself a website that you can play around with. Don't try and build sites that don't really have any point, though. Unless you've got something that you really think you'd like to put into a web page, then don't do it, because anything that's done for the hell of it is generally uninteresting to read or look at.

As you're learning to write HTML, you will build some terrible websites, and there's no getting away from it. One good way of making yourself, and your website, better, is to build it with what you know, and then learn something new, and "revamp" what you did before, with some new features.

There are a couple of things that you should bear in mind, also, when building websites, largely to do with the graphics. Remember that not everyone uses the same web browser, so what you see on your screen may differ from what other people are seeing on their screens. Also, people's screen resolution differs, so something that may be just the right size on your screen may be far too big, or too small, on someone else's. And finally, be careful about using animations and large images, because they take a long time to load, and some people may just loose interest, and go somewhere else, if your page is taking too long.

So, I hope that you've found this useful, and good luck with your site ...




LIST OF TAGS



Below I have listed out all of the tags at which we have looked, and their individual attributes. This won't tell you how to use them, but it should be helpful as a quick reference to functions that you already know.

Misc.

A.

B.

C.

D.

F.

H.

I.

L.

M.

N.

O.

P.

S.

T.

U.




SPECIAL CHARACTERS



To define special characters in HTML, it is necessary to use their code. Below is a list of all the special characters, and the codes that you must use to display them. You won't find most of them any use, but this is just intended as a reference guide, and you never know what you're going to need ...

Description                               Code            Entity name   
===================================       ============    ==============
quotation mark                            &#34;  --> "    &quot;   --> "
ampersand                                 &#38;  --> &    &amp;    --> &
less-than sign                            &#60;  --> <    &lt;     --> <
greater-than sign                         &#62;  --> >    &gt;     --> >

Description                          Char Code            Entity name   
===================================  ==== ============    ==============
non-breaking space                       &#160; -->      &nbsp;   -->  
inverted exclamation                     &#161; --> ¡    &iexcl;  --> ¡
cent sign                                &#162; --> ¢    &cent;   --> ¢
pound sterling                           &#163; --> £    &pound;  --> £
general currency sign                    &#164; --> ¤    &curren; --> ¤
yen sign                                 &#165; --> ¥    &yen;    --> ¥
broken vertical bar                      &#166; --> ¦    &brvbar; --> ¦
                                                          &brkbar; --> &brkbar;
section sign                             &#167; --> §    &sect;   --> §
umlaut (dieresis)                        &#168; --> ¨    &uml;    --> ¨
                                                          &die;    --> ¨
copyright                                &#169; --> ©    &copy;   --> ©
feminine ordinal                         &#170; --> ª    &ordf;   --> ª
left angle quote, guillemotleft          &#171; --> «    &laquo;  --> «
not sign                                 &#172; --> ¬    &not;    --> ¬
soft hyphen                              &#173; --> ­    &shy;    --> ­
registered trademark                     &#174; --> ®    &reg;    --> ®
macron accent                            &#175; --> ¯    &macr;   --> ¯
                                                          &hibar;  --> &hibar;
degree sign                              &#176; --> °    &deg;    --> °
plus or minus                            &#177; --> ±    &plusmn; --> ±
superscript two                          &#178; --> ²    &sup2;   --> ²
superscript three                        &#179; --> ³    &sup3;   --> ³
acute accent                             &#180; --> ´    &acute;  --> ´
micro sign                               &#181; --> µ    &micro;  --> µ
paragraph sign                           &#182; --> ¶    &para;   --> ¶
middle dot                               &#183; --> ·    &middot; --> ·
cedilla                                  &#184; --> ¸    &cedil;  --> ¸
superscript one                          &#185; --> ¹    &sup1;   --> ¹
masculine ordinal                        &#186; --> º    &ordm;   --> º
right angle quote, guillemotright        &#187; --> »    &raquo;  --> »
fraction one-fourth                      &#188; --> ¼    &frac14; --> ¼
fraction one-half                        &#189; --> ½    &frac12; --> ½
fraction three-fourths                   &#190; --> ¾    &frac34; --> ¾
inverted question mark                   &#191; --> ¿    &iquest; --> ¿
capital A, grave accent                  &#192; --> À    &Agrave; --> À
capital A, acute accent                  &#193; --> Á    &Aacute; --> Á
capital A, circumflex accent             &#194; --> Â    &Acirc;  --> Â
capital A, tilde                         &#195; --> Ã    &Atilde; --> Ã
capital A, dieresis or umlaut mark       &#196; --> Ä    &Auml;   --> Ä
capital A, ring                          &#197; --> Å    &Aring;  --> Å
capital AE diphthong (ligature)          &#198; --> Æ    &AElig;  --> Æ
capital C, cedilla                       &#199; --> Ç    &Ccedil; --> Ç
capital E, grave accent                  &#200; --> È    &Egrave; --> È
capital E, acute accent                  &#201; --> É    &Eacute; --> É
capital E, circumflex accent             &#202; --> Ê    &Ecirc;  --> Ê
capital E, dieresis or umlaut mark       &#203; --> Ë    &Euml;   --> Ë
capital I, grave accent                  &#204; --> Ì    &Igrave; --> Ì
capital I, acute accent                  &#205; --> Í    &Iacute; --> Í
capital I, circumflex accent             &#206; --> Î    &Icirc;  --> Î
capital I, dieresis or umlaut mark       &#207; --> Ï    &Iuml;   --> Ï
capital Eth, Icelandic                   &#208; --> Ð    &ETH;    --> Ð
                                                          &Dstrok; --> Đ
capital N, tilde                         &#209; --> Ñ    &Ntilde; --> Ñ
capital O, grave accent                  &#210; --> Ò    &Ograve; --> Ò
capital O, acute accent                  &#211; --> Ó    &Oacute; --> Ó
capital O, circumflex accent             &#212; --> Ô    &Ocirc;  --> Ô
capital O, tilde                         &#213; --> Õ    &Otilde; --> Õ
capital O, dieresis or umlaut mark       &#214; --> Ö    &Ouml;   --> Ö
multiply sign                            &#215; --> ×    &times;  --> ×
capital O, slash                         &#216; --> Ø    &Oslash; --> Ø
capital U, grave accent                  &#217; --> Ù    &Ugrave; --> Ù
capital U, acute accent                  &#218; --> Ú    &Uacute; --> Ú
capital U, circumflex accent             &#219; --> Û    &Ucirc;  --> Û
capital U, dieresis or umlaut mark       &#220; --> Ü    &Uuml;   --> Ü
capital Y, acute accent                  &#221; --> Ý    &Yacute; --> Ý
capital THORN, Icelandic                 &#222; --> Þ    &THORN;  --> Þ
small sharp s, German (sz ligature)      &#223; --> ß    &szlig;  --> ß
small a, grave accent                    &#224; --> à    &agrave; --> à
small a, acute accent                    &#225; --> á    &aacute; --> á
small a, circumflex accent               &#226; --> â    &acirc;  --> â
small a, tilde                           &#227; --> ã    &atilde; --> ã
small a, dieresis or umlaut mark         &#228; --> ä    &auml;   --> ä
small a, ring                            &#229; --> å    &aring;  --> å
small ae diphthong (ligature)            &#230; --> æ    &aelig;  --> æ
small c, cedilla                         &#231; --> ç    &ccedil; --> ç
small e, grave accent                    &#232; --> è    &egrave; --> è
small e, acute accent                    &#233; --> é    &eacute; --> é
small e, circumflex accent               &#234; --> ê    &ecirc;  --> ê
small e, dieresis or umlaut mark         &#235; --> ë    &euml;   --> ë
small i, grave accent                    &#236; --> ì    &igrave; --> ì
small i, acute accent                    &#237; --> í    &iacute; --> í
small i, circumflex accent               &#238; --> î    &icirc;  --> î
small i, dieresis or umlaut mark         &#239; --> ï    &iuml;   --> ï
small eth, Icelandic                     &#240; --> ð    &eth;    --> ð
small n, tilde                           &#241; --> ñ    &ntilde; --> ñ
small o, grave accent                    &#242; --> ò    &ograve; --> ò
small o, acute accent                    &#243; --> ó    &oacute; --> ó
small o, circumflex accent               &#244; --> ô    &ocirc;  --> ô
small o, tilde                           &#245; --> õ    &otilde; --> õ
small o, dieresis or umlaut mark         &#246; --> ö    &ouml;   --> ö
division sign                            &#247; --> ÷    &divide; --> ÷
small o, slash                           &#248; --> ø    &oslash; --> ø
small u, grave accent                    &#249; --> ù    &ugrave; --> ù
small u, acute accent                    &#250; --> ú    &uacute; --> ú
small u, circumflex accent               &#251; --> û    &ucirc;  --> û
small u, dieresis or umlaut mark         &#252; --> ü    &uuml;   --> ü
small y, acute accent                    &#253; --> ý    &yacute; --> ý
small thorn, Icelandic                   &#254; --> þ    &thorn;  --> þ
small y, dieresis or umlaut mark         &#255; --> ÿ    &yuml;   --> ÿ



GLOSSARY OF TERMS



Base Font - This is the basic font of the page, and depends on the web browser's user's preferences. It is risky to assume that the font will be any particular size.

CGI (Common Gateway Interface) - Environment in which programs or scripts run on a Server to perform operations, including generating web-pages on-the-fly when asked to by a client browser. An example of this might be a search engine that takes your search string, and runs a cgi program which generates a page consisting of the results of the search.

CPU - Central Processing Unit. This is the chip inside your computer that makes most of the calculations that are required to operate software.

Client/Server - A way of doing things, such that one machine (the Client) asks the other (the Server to do something such as provide it with information. On the Web, the client is the computer in front of the person doing the browsing, whilst the server is generally a bigger and more powerful machine on which this information is stored.

Client-Side - When one computer contacts another, the one who makes the call becomes known as the "Client" machine. So when you dial in to a website, that website is stored on a large computer called a "server", and your computer becomes the "Client". If the page contains some operation (in this case an imagemap), that is downloaded onto your machine before it is executed, then that operation is running "Client-Side", as opposed to "Server-Side".

Downloading - Copying information from a server to a client. This is what your browser does when it reads a website. It transfers the information from the place where the website is stored, to your machine. The opposite of this is called Uploading.

Dynamic HTML [dHTML] - This is a way of combining HTML and JavaScript in such a way that you get HTML that can alter itself to produce some interesting and spectacular effects. At the moment, it is rare, but it looks to become more widespread in the future.

Hexadecimal - This is a system of counting that uses a base of 16, instead of 10, like decimals. So, as decimals go 0123456789, hexidecimals go 0123456789abcdef. Counting works exactly the same, but using more digits. So the last 2 digit number in decimals is 99, while the last 2 digit number in hexidecimals is ff.

High-Level Programming-Language - A programming language which attempts to be closer to some human language (generally English), and is thus easier to understand. BASIC is a good example of a high-level programming language. The resemblance between what the programmer writes, and what the computer actually does is not close, and another piece of software is required to make the machine understand the program.

Internet - Collective name for all the millions of computers and the connections between them which constitute the largest network on the planet. Your computer is connected to the internet if it can talk to any other computer on the internet using one of the standard protocols.

Interpreted Language - A programming language which requires another program (an interpreter) to run at the same time on the same machine, to perform its functions.

JavaScript - A high-level script language that can be used on the internet, and interpreted by some web browsers. A script language is a programming language that is used to make greater use of existing resources in other applications. At the moment, it is almost entirely Netscape specific, but that should change with time.

Mutually Exclusive - If several events are mutually exclusive, then at most one can be "on" at any one time. If there are 20 buttons, and they are mutually exclusive, with regard to being "on", then if one of them is "on", then the others must be "off".

Nesting - This is where one command is put inside another. For example, if we were making some text that was bold and italic, then we should put <b><i>Text</i></b>. See that both the italic tags are between the two bold tags. This could just as legitimately be written: <i><b>Text</b></i>. As you can see, as long as the nesting is correct, then the order of the tags is not so important.

Pixel - Abbreviation of "Picture Element", a pixel is the single smallest unit on the screen of a computer, ie, a single dot.

Protocol - A defined way of communicating, in this case between two computers. Essentially, it is a list of the possible things each can say, and what this means, and this allows information to be passed.

Source - This is the raw text of the HTML document. What you see in the browser window is an interpretation of that source. If you want to see the source of a page, most web browsers will have a "View Source" option somewhere - often in the "View", the "Document", or the "Page" menu, if there is one.

Syntax - This just means the way that something is layed out. If it has a specific way that it has to be written, then that is the syntax.

Thumbnail - This is a smaller version of an image that you have on your website. It is used mainly for having large indexes of pictures to look at, with the thumbnail giving you an idea what they're like. The way I've described making thumbnails is one way of doing it, but it requires quite a lot of CPU time, thus not making the page load any faster, which is often the point of thumbnails. The best way to do it, if you can, is to actually shrink the image yourself using some graphics software, and then the save it as something else, and use that instead.

URL - Universal Resource Locator. This is what you type in to find the website that you want to look at.

Web Browser - Software on the user's machine that can download and interpret information from the Web, and present it on the screen. More common examples would be Netscape, or MS Internet-Explorer.

Web, the - This is a term meaning the information that is stored on, and accessable via the internet, using a web browser. This doesn't include Usenet, or Email.