lecture menu |
lecture 7: <area> tagsThis page is just a quick introduction to this topic. Ensure you read the relevant page in the online teaching materials after this lecture which discusses it in much more detail. There is also some reference material on this lecture's handout. Hot spots are actually drawn with tags called <area> tags. These always go inside the relevant <map> and </map> tags. They do not take a closing tag, so remember to always include the / at the end of the tag. For each hot spot, you need one <area> tag. In <area> tags, attributes are very important. This page briefly presents a list of which ones are used; have a look at the example below to see them in action. You may also like to refer back to this example once you've read the more detailed online teaching materials.
The finished result is as follows. Do play around with the image map itself, following some of the links and seeing which countries have been "activated" and where the hot spots actually are on screen. Compare what you can see with the code, referring back to the list of attributes above. This code also appears on your handout for this lecture.
|