HTML and CSS Reference
In-Depth Information
Example 2.23: HTML code for image scaling
<!DOCTYPE html>
<html>
<head>
<title>Example 2.23</title>
</head>
<body>
<h1> Wide Style </h1>
<img src="rainbow_sq.gif" height="32" width="100%" alt=""/>
</body>
</html>
Figure 2.23: A scaled-up image
Imagemaps are an extension to the concept of document linking. An
imagemap is an ordinary image upon which a set of subareas have been
deined, each of which is a hyperlink to a diferent URL. An image becomes
imagemapped when the usemap attribute is added to the image element with
a value that matches the name or id attribute value of a map element placed
elsewhere in the document. he map element contains a set of area elements as
it immediate children, as in the following snippet of HTML code that could
deine a button bar:
 
 
Search WWH ::




Custom Search