This is Chapter 4 -- Hyperlinks

Go back to Chapter 3.

The element used to create a hyperlink is known as an anchor <a>.

Use <id> to set the anchor in internal links.

There are "mailto:" links which allow you to send email Send Tim email. But using a form is a better way to go.

Chapter 5 -- Images

The image element <img> directs the browser to place an image.

For your XHTML code to validate you must put the image element within <div> and </div>. "Think of <div> as a different form of <p>." This will be discussed further in chapter 13.

There are two image attributes that are required for your page to validate. They are "src=" which tells where the image is located, and "alt=" which specifies text to be displayed if the image can't be displayed.

Other image attributes are: "Height" & "width" (in pixels); and "align" (left, right, top, middle, bottom in relation to the surrounding text.)

By adding the "border=" attribute to the image element you can control the border around an image hyperlink.

"hspace" and "vspace" are given pixel values and create space between image and text.

Image Maps are covered in this chapter. I created one here several years ago.

Chapter 6 -- Lists

In XHTML, lists are for groups of items that are not headings, paragraphs, or blockquotes: i.e. a group of items that belongs in a list.

There are three types of lists: unordered, ordered, and definition.

<ul> is the element for an unordered list. Each item in the list must be within the <li> element. For example:

The "type=" attribute to the <ul> element allows you to choose your bullet type. Choices are: discs, circles, and squares.

The <ol> element is used for ordered lists. The 'type=' attributes are different from unordered lists. By default, ordered lists use numbers instead of bullets.

How to code nested lists is on pages 127-130. Definition lists are also covered. Definition lists use three elements: <dl>,<dt>, and <dd>.

Move on to Chapter Seven --Tables.