XHTML element: map

Piiritleb piltkaardi (imagemap). Kasutuses koos area-elementidega. Vaata kindlasti ka element area kirjeldust.

Nõutavad atribuudid:

Standardsed atribuudid

Neid saab määrata suuremale osale elementidest:

Näited

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body>

<div>
<img src="http://www.interneti.info/pildid/interneti.info.logo.sinine-roheline.png"
width="300" height="60" alt="interneti.info logo" usemap="#interneti_info_logo" />

<map id="interneti_info_logo" name="interneti_info_logo">
     <area shape="rect" href="#" coords="13,11, 191,53" alt="Ristküliku kujuline osa" />
     <area shape="circle" href="#" coords="210,22,6" alt="Ringikujuline osa" />
     <area shape="poly" href="#" coords="248,14, 222,34, 230,47, 265,48, 282,29, 248,13, 248,14"
     alt="Hulknurga kujuline osa" />
</map>
</div>

</body>
</html>

© Margo Munner | Sisukaart