area hreflang Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:area

Description

The hreflang attribute sets the language of the target URL in the area.

Attribute Values

Value Description
language_code A two-letter language code that specifies the language of the linked document.

An image-map, with clickable areas:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials