Attributes change the effect of html tags. This section shows the proper punctuation of attributes.

Here is a simple example: The image tag <img> has the attribute, src, whose value is the address and file name of the image.

The code looks like this:

<img src="../clip/butter3.gif">

blue butterfly

Notice that:

This punctuation scheme is always used for attributes, though the style attribute has an extra wrinkle, as we shall see in the section on Core Attributes.

Multiple attributes in the same tag

Multiple attributes are often used within one tag. You can separate them with a space, or nothing at all. The image tag also has the width attribute. Its value can be given in %. Here width is used to change the size of the butterfly.

<img src="../clip/butter3.gif" width="12%">

blue butterfly at higher magnification

Valid HTML 4.01 Transitional