An anchor associates a region of images and text with an action.
The most common type of anchor creates a clickable region tied to an action. The action is performed when a user clicks within the defined region.
All anchor elements contain two critical sections:
<A (action to occur) > (clickable region) </A>
Some of the possible actions:
Examples (in the same sequence as the previous list):
Images can be included in HTML documents. The most common image format supported by HTML is GIF (Graphical Interchange Format).
All image elements contain information on:
<IMG SRC=". . ." ALIGN=. . . ALT=". . ." >
The alignment options are TOP, BOTTOM (default), and MIDDLE. The position alignment is in terms of the current line of text.
Some browsers also support alignment options of LEFT and RIGHT with the text flowing down the opposite side of the image. Use <BR CLEAR=. . .> with CLEAR set to LEFT or RIGHT to terminate special alignment.
Examples:
Some anchors and images to click on:
Click on the image to view
a larger version of this gif file
Source for the previous example:
<P>Some anchors and images to click on:
<UL>
<LI><A HREF="big.gif"><IMG SRC="small.gif">Click on the image</A>
to view a larger version of this gif file
<LI><A HREF="images.html">Click on this line to load an HTML page that
illustrates image alignment options</A>
</UL>