salve, mi sono appena iscritto e mi sembra giusto accolarvi subito un problemino![]()
allora, questa è una pagina validata xhtml 1.0 Strict:
<!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">
<head>
<title> riprovando</title>
<meta name="Generator" content="Alleycode HTML Editor" />
<meta name="Description" content="è una ennesima prova di allenamento" />
<meta name="Keywords" content="idem" />
<style type="text/css">
html {background-color: #333333; background-image: url(file/bg.gif); background-position: center; background-repeat: repeat-y; }
body {background: white; width: 770px; margin: 0px auto 0px auto; font-family: courier new;
}
table#ret { text-align: center; width: 600px; margin: 2px auto 0px auto; border-top: double 0px black; border-left: solid black 0px; border-bottom: double 0px black; border-right: solid black 0px;}
img#ros { width: 65px; border-width: 0px;
}
td#imo {width: 150px; border-right: solid black 1px; border-left: solid black 1px; border-bottom: red 1px solid; border-top: red 1px solid;
}
td#imc {width: 150px; border-right: solid black 1px; border-left: solid black 1px; border-bottom: red 1px solid; border-top: red 1px solid;
}
td {width: 300px; border-bottom: #7fff00 1px solid;
}
td#pri {width: 300px; border-top: #7fff00 1px solid; border-bottom: #7fff00 1px solid;
}
img#pet { width: 65px; height: 61px; border-width: 0px;
}
a { color: #0085ab
}
a:hover { color: #d2691e
}
a#pro:hover { color: #d2691e
}
a#pro {color: red
}
img#cer { text-align: center; display: block;
}
img#vad {position: absolute; top: 5px; right: 5px; border-width: 0px;
}
map { shape: rect}
</style>
</head>
<body>
<map id="mao"><area shape="rect"
coords="606,254,668,265"
href="http://www.lacbrescia.com/partners.html" alt="partners" title="pagina dei Partners" /><area shape="rect"
coords="697,250,754,267"
href="http://www.lacbrescia.com/contatti.html" alt="contatti" title="pagina dei contatti" /></map>
</p>
[img]file/splashhome.jpg[/img]
</p>
<table id="ret">
<tr>
<td rowspan="6" id="imc"><a href="http://www.lacbrescia.com/attivita.html#rospi">
Campagna 2007 salvataggio Anfibi
[img]file\rospo.jpg[/img]
-informati-
</a></td>
<td id="pri">Chi siamo?</td>
<td rowspan="6" id="imo"><a href="http://www.abolizionecaccia.it/Site/Lac/Adotta_Pettirosso.htm">
Campagna "Adotta un Pettirosso"
[img]file\pettirosso.jpg[/img]
-informati-
</a></td>
</tr>
<tr>
<td>Attività della sezione</td>
</tr>
<tr>
<td><a href="http://www.lacbrescia.com/pronto.html" id="pro">Se un animale è ferito,
che fare?</a></td>
</tr>
<tr>
<td>Consigli utili nel rispetto della natura</td>
</tr><tr>
<td>Tesseramento, perchè?</td>
</tr>
<tr>
<td>News</td>
</tr>
</table>
[img]file/cerbiatto.jpg[/img]
</p>
[img]file/undersplashccp.JPG[/img]
</p>
</p>
</body>
</html>
se provo cambiando il doctype e palle varie a validarla come xhtml 1.1 il validator mi resituisce questo errore:
"character "#" is not allowed in the value of attribute "usemap".
.....usemap="#mao" />It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit."
che in nessun modo sono riuscito a risolvere, se tolgo # (inutile dirlo) ovviamente "l'ancora" sparisce e la mappa non funge, e atri modi di collegare la mappa all'imagine io non ne conosco, e comunque da quello che so e ho letto le mappe in xhtml 1.1 si fanno paro paro alla strict tranne il fatto che l'attributo "name" è sparito del tutto....(sarò un principiante alle prime armi lo ammetto però sono anche testardo
)......validarla come strict mi basta anche, però vorrei togliermi lo sfizio di capire qual'è il problema....e magari risolverlo...
illuminatemi con la vostra saggezza! :master: vi prego!
![]()