CSS Portal
Run
Search
« Back to
HTML shape Attribute
<img alt="Shapes" height="102" src="images/shapes.jpg" style="border: none;" usemap="#shapes" width="375" /> <map name="shapes" id="shapes"> <area shape="circle" coords="58,50,40" href="javascript:clicked_on('circle');" title="Circle" alt="Circle"/> <area shape="rect" coords="136,11,227,89" href="javascript:clicked_on ('rectangle');" title="Rectangle" alt="Rectangle"/> <area shape="poly" coords="309,13,358,89,257,89" href="javascript:clicked_on('triangle');" title="Triangle" alt="Triangle"/> <area shape="default" nohref="nohref" title="Default" alt="Default"/> </map> <script> function clicked_on ( clicked_shape ) { alert ( "You clicked on the " + clicked_shape ); } </script>
If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!
☕ Buy a Coffee