[HTML] [attributo] shape

shape (attributo base HTML) stabilisce la forma dell’elemento HTML cui acceda.

tag

valore

<a>

shape = "circle": definisce un’area circolare.
shape = "default": definisce l’area intera.
shape = "poly": definisce un’area poligonale.
shape = "rect": definisce un’area rettangolare.

<area>

Come sopra.

Esempio

<figure>
<img src="/media/logo4.png" width="320" height="425" border="0" usemap="#map" />
  <figcaption><small>Clic sull'occhio destro e mouse sulla bocca</small></figcaption>
</figure>
<map name="map">
<area shape="rect" coords="52,134,105,164" href="http://it.wikipedia.org/wiki/Occhio" target="_blank"/>
<area shape="rect" coords="76,201,152,226" onmouseover="alert('Hai soffermato il mouse sulla bocca')" nohref="nohref" />
</map>

Contenuti correlati

  • CSS
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • SQL
  • WORDPRESS

Fonti esterne

attributi base html, html

Related Articles

0 Comment

Rispondi