WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <area> Tag. Not Supported in HTML5.


Example

An implanted picture area:

<map name="earth" >
  <area shape="circle" coords="- 180,180" href="earth.htm" alt="Mercury">
</map>


Definition and Usage

<area> The label defines the area inside the image map (image map refers to an image with a clickable area).

<area> Elements are always nested within <map> Inside the label.


Browser Support

All major browsers support the <area> tag.
Element
<applet> Not supported Yes Yes Yes Not supported

Differences Between HTML 4.01 and HTML5

HTML5 provides some new attributes, and some attributes in HTML 4.01 are no longer supported.



Differences between HTML and XHTML

In HTML,<area> The tag has no end tag.

In XHTML,<area> The label must be closed properly.

Attributes

New :HTML5 New property in.

Attribute value Description
alt text Alternative text for the specified area. This attribute is required if the href attribute is used.
coords coordinates The coordinates of the specified area.
href URL Specifies the destination URL for the zone.
hreflang New language_code Specifies the language of the target URL.
media New media query Specifies which medium /device the target URL is optimized for. Default: all.
nohref value Not supported in HTML5. Specifies an area without relevant links.
relNew alternate
author
bookmark
help
license
next
nofollow
noreferrer
prefetch
prev
search
tag
Specifies the relationship between the current document and the target URL.
shape default
rect
circle
poly
specifies the shape of the area.
target _blank
_parent
_self
_top
framename
Specifies where to open the destination URL.
type New MIME_type Specifies the MIME type of the target URL.
Note: MIME = Multipurpose Internet Mail Extensions.