Attribut nohrefde la balise <area> HTML
Exemples
Carte image avec zones cliquables, utilisant l'attribut nohref :
<img src="planets.gif.html"
width="145" height="126"
alt="Planets"
usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" nohref alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm.html" alt="Mercure">
<area shape="circle" coords="124,58,8" href="venus.htm.html" alt="Vénus">
</map>
usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" nohref alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm.html" alt="Mercure">
<area shape="circle" coords="124,58,8" href="venus.htm.html" alt="Vénus">
</map>
Essayez-le vous-même »
Prise en charge des navigateurs
![]()
![]()
![]()
![]()
![]()
Actuellement, aucun des principaux navigateurs ne prend en charge l'attribut nohref.
Définition et utilisation
Dans HTML5, la balise <area> ne prend plus en charge l'attribut nohref.
L'attribut nohref est un attribut booléen.
Cet attribut spécifie qu'une zone n'a pas de lien associé.
Astuce :L'attribut nohref indique que la balise <area> n'a pas de lien associé. Une façon plus simple est de ne pas utiliser l'attribut href.
Différences entre HTML et XHTML
En XHTML, la minimisation d'attribut est interdite, et l'attribut nohref doit être défini comme <area nohref="nohref.html" />.
Syntaxe
<area nohref>
Autres extensions
Balise HTML <area>