HTML CSS examples for HTML Tag:area
The hreflang attribute sets the language of the target URL in the area.
Value | Description |
---|---|
language_code | A two-letter language code that specifies the language of the linked document. |
An image-map, with clickable areas:
<!DOCTYPE html> <html> <body> <img src="https://www.java2s.com/style/demo/Opera.png" width="145" height="126" alt="message" usemap="#myMap"> <map name="myMap"> <area shape="rect" coords="0,0,80,100" alt="A" href="" hreflang="en"> </map><!-- ww w.j av a 2 s .c o m--> </body> </html>