Share on Google+Share on Google+

HTML5 type attribute, Definition of type attribute in tag.

Use of type attribute of area tag in HTML5.

HTML5 type attribute, Definition of type attribute in <area> tag.

This tutorial will inform you about <area>tag type attribute. The type attribute is used for defining the MIME (Multipurpose Internet Mail Extensions) type of the linked document. This attribute is used only when the href attribute is set in the <area> tag. This attribute informs the browser about the type of the linked resources.

Declaration syntax:

<area href="URL"   type="value"/>

The value of the type attribute is the name of the MIME type of the document. For Example :- value can be text, video, image, audio etc.

In html5 this is new attribute of <area> tag.


<!DOCTYPE html >
  <title> Example For area Tag  type attribute</title>
   <img src="comp.gif" width="200" height="159"  usemap="#Map0" />
   <map name="Map0">
   <area href="cpu.bmp" shape="rect" coords="4, 6, 196, 158" type="image/bmp">
  The MIME type of the linked document is image type.


Note: See the browser compatible page for successfully rendering the program.

Download This Example


Posted on: September 1, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.


Advertisement null