area type Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:area

Description

The type attribute specifies the Internet media type or MIME type of the target URL.

Attribute Values

Value Description
media_type The Internet media type of the linked document.

The type attribute specifies the media type of the target URL:

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="https://www.java2s.com/style/demo/Opera.png" type="image/gif">
</map><!--from   ww  w.j a v a  2 s  .com-->

</body>
</html>

Related Tutorials