Horje
What is HTML <area> Tag | HTML Tag Code
What is HTML <area> Tag

An image map, with clickable areas:

The <area> tag defines an area inside an image map (an image map is an image with clickable areas).

<area> elements are always nested inside a <map> tag.

Note: The usemap attribute in <img> is associated with the <map> element's name attribute, and creates a relationship between the image and the map.


How to create HTML <area> Tag

An image map, with clickable areas:

index.html
Example: HTML
<img src="https://horje.com/avatar.png" alt="Workplace" usemap="#workmap" width="400" height="379">

<map name="workmap">
  <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
  <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
  <area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm">
</map>

Browser Support for HTML <area> Tag

Output should be:

Browser Support for HTML <area> Tag

Attributes for HTML <area> Tag

Attribute Value Description
alt text Specifies an alternate text for the area. Required if the href attribute is present
coords coordinates Specifies the coordinates of the area
download filename Specifies that the target will be downloaded when a user clicks on the hyperlink
href URL Specifies the hyperlink target for the area
hreflang language_code Specifies the language of the target URL
media media query Specifies what media/device the target URL is optimized for
referrerpolicy no-referrer
no-referrer-when-downgrade
origin
origin-when-cross-origin
same-origin
strict-origin-when-cross-origin
unsafe-url
Specifies which referrer information to send with the link
rel 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 target URL
type media_type Specifies the media type of the target URL

Another image map, with clickable areas for HTML <area> Tag

index.html
Example: HTML
<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com/learn/629/what-is-html-applet-tag">
  <area shape="circle" coords="90,58,3" alt="Mercury" href="https://horje.com/learn/628/what-is-html-address-tag">
  <area shape="circle" coords="124,58,8" alt="Venus" href="https://horje.com/learn/627/what-is-html-acronym-tag">
</map>

Output should be:

Another image map, with clickable areas for HTML <area> Tag

How to set Default CSS Settings for HTML <area> Tag

Most browsers will display the <area> element with the following default values: Click on the sun or on one of the planets to watch it closer:
index.html
Example: HTML
<style>
area {
  display: none;
}
</style>

Output should be:

How to set Default CSS Settings for HTML <area> Tag

How to add HTML <area> alt Attribute

Use the alt attribute to specify an alternate text for each area in the image map.

Definition and Usage

The alt attribute specifies an alternate text for an area, if the image cannot be displayed.

The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).

The alt attribute is required if the href attribute is present.

Browser Support

Syntax

<area alt="text">

Attribute Values

Value Description
text Specifies the alternate text for the area, if the image cannot be displayed
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area alt attribute</h1>

<p>Click on the sun or on one of the planets to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com/learn/630/what-is-html-area-tag">
  <area shape="circle" coords="90,58,3" alt="Mercury" href="https://horje.com/learn/630/what-is-html-area-tag">
  <area shape="circle" coords="124,58,8" alt="Venus" href="https://horje.com/learn/630/what-is-html-area-tag">
</map>

</body>
</html>

Output should be:

How to add HTML <area> alt Attribute

How to add HTML <area> coords Attribute

Use the coords attribute to specify the coordinates of each area in the image map.

Definition and Usage

The coords attribute specifies the coordinates of an area in an image map.

The coords attribute is used together with the shape attribute to specify the size, shape, and placement of an area.

Tip: The coordinates of the top-left corner of an area are 0,0.

Browser Support

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area coords attribute</h1>

<p>Click on the sun or on one of the planets to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map id="planetmap" name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com">
<area shape="circle" coords="90,58,3" alt="Mercury" href="https://horje.com/avatar.png">
<area shape="circle" coords="124,58,8" alt="Venus" href="https://horje.com">
</map>

</body>
</html>

Output should be:

How to add HTML <area> coords Attribute

How to add HTML <area> coords x1,y1,x2,y2 Attribute

Specifies the coordinates of the top-left and bottom-right corner of the rectangle (shape="rect").

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area coords attribute</h1>

<p>Click on the sun or on one of the planets to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map id="planetmap" name="planetmap">
<area shape="rect" coords="x1,y1,x2,y2" alt="Sun" href="https://horje.com">
</map>

</body>
</html>

Output should be:

How to add HTML <area> coords x1,y1,x2,y2 Attribute

How to add HTML <area> coords x,y,radius Attribute

Specifies the coordinates of the circle center and the radius (shape="circle").

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area coords attribute</h1>

<p>Click on the sun or on one of the planets to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map id="planetmap" name="planetmap">
<area shape="rect" coords="x,y,radius" alt="Sun" href="https://horje.com">
</map>

</body>
</html>

Output should be:

How to add HTML <area> coords x,y,radius Attribute

How to add HTML <area> download Attribute

Use the download attribute to specify that the target will be downloaded when a user clicks on the hyperlink:

Definition and Usage

The download attribute specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink.

The optional value of the download attribute will be the new name of the file after it is downloaded. There are no restrictions on allowed values, and the browser will automatically detect the correct file extension and add it to the file (.img, .pdf, .txt, .html, etc.).

If the value is omitted, the original filename is used.

Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

* Chrome 65+ and Firefox only support same-origin download links.

Syntax

<area download="filename">

Attribute Values

Value Description
filename Optional. Specifies the new filename for the downloaded file

 

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area download attribute</h1>

<p>Click on the sun or on one of the planets to download its content.</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com/avatar.png" download>
  <area shape="circle" coords="90,58,3" alt="Mercury" href="https://horje.com/avatar.png" download>
  <area shape="circle" coords="124,58,8" alt="Venus" href="https://horje.com/avatar.png" download>
</map>

<p><b>Note:</b> The download attribute is not supported in IE, Safari or Opera version 12 (and earlier).</p>

</body>
</html>

Output should be:

How to add HTML <area> download Attribute

How to Specify a value for the download attribute HTML <area> download Attribute

Specify a value for the download attribute, which will be the new filename of the downloaded file (sun.htm instead of information_about_the_sun.htm and so on):

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area download attribute</h1>

<p>Click on the sun or on one of the planets to download its content.</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" download="sun">
  <area shape="circle" coords="90,58,3" alt="Mercury" href="https://horje.com/avatar.png" download="mercury">
  <area shape="circle" coords="124,58,8" alt="Venus" href="https://horje.com/avatar.png" download="venus">
</map>

<p>Notice that the filename of the downloaded file will be saved as "sun.htm" instead of "information_about_the_sun.htm" for the sun area, "mercury.gif" instead of "merglobe.gif" for the mercury area and "venus.txt" instead of "information_about_the_planet_venus.txt" for the venus area.</p>
<p><b>Note:</b> The download attribute is not supported in IE, Safari or Opera version 12 (and earlier).</p>

</body>
</html>

Output should be:

How to Specify a value for the download attribute HTML <area> download Attribute

How to add HTML <area> href Attribute

Use the href attribute to specify the link target for each area in the image map:

Definition and Usage

The href attribute specifies the hyperlink target for the area.

If the href attribute is not present, the <area> tag is not a hyperlink.

Browser Support

Syntax

<area href="URL">

Attribute Values

Value Description
URL Specifies the hyperlink target for the area.

Possible values:

  • An absolute URL - points to another web site (like href="http://www.example.com/sun.htm")
  • A relative URL - points to a file within a web site (like href="sun.htm")
  • Link to an element with a specified id within the page (like href="#top")
  • Other protocols (like https://, ftp://, mailto:, file:, etc..)
  • A script (like href="javascript:alert('Hello');")
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area href attribute</h1>

<p>Click on the sun or on one of the planets to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map id="planetmap" name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com/avatar.png">
<area shape="circle" coords="90,58,3" alt="Mercury" href="https://horje.com/avatar.png">
<area shape="circle" coords="124,58,8" alt="Venus" href="https://horje.com/avatar.png">
</map>

</body>
</html>

Output should be:

How to add HTML <area> href Attribute

How to add HTML <area> hreflang Attribute

Use the hreflang attribute to specify the language of the target URL for each area in the image map:

Definition and Usage

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

This attribute is only used if the href attribute is set.

Note: This attribute is purely advisory.

Browser Support

Syntax

<area hreflang="language_code">

Attribute Values

Value Description
language_code A two-letter language code that specifies the language of the linked document.
To view all available language codes, go to our Language code reference.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area hreflang attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" hreflang="en">
</map>

</body>
</html>

Output should be:

How to add HTML <area> hreflang Attribute

How to add HTML <area> media Attribute

Use the media attribute to specify what media/device the target URL is optimized for:

Definition and Usage

The media attribute specifies what media/device the target URL is optimized for.

This attribute is used to specify that the URL is designed for special devices (like iPhone), speech or print media.

This attribute can accept several values.

Only used if the href attribute is present.

Note: This attribute is purely advisory.

Browser Support

Syntax

<area media="value">

 

Possible Operators

Value Description
and Specifies an AND operator
not Specifies a NOT operator
, Specifies an OR operator

Devices

Value Description
all Default. Suitable for all devices
aural Speech synthesizers
braille Braille feedback devices
handheld Handheld devices (small screen, limited bandwidth)
projection Projectors
print Print preview mode/printed pages
screen Computer screens
tty Teletypes and similar media using a fixed-pitch character grid
tv Television type devices (low resolution, limited scroll ability)

Values

Value Description
width Specifies the width of the targeted display area.
"min-" and "max-" prefixes can be used.
Example: media="screen and (min-width:500px)"
height Specifies the height of the  targeted display area. "min-" and "max-" prefixes can be used.
Example: media="screen and (max-height:700px)"
device-width Specifies the width of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="screen and (device-width:500px)"
device-height Specifies the height of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="screen and (device-height:500px)"
orientation Specifies the orientation of the target display/paper.
Possible values: "portrait" or "landscape"
Example: media="all and (orientation: landscape)"
aspect-ratio Specifies the width/height ratio of the targeted display area.
"min-" and "max-" prefixes can be used.
Example: media="screen and (aspect-ratio:16/9)"
device-aspect-ratio Specifies the device-width/device-height ratio of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="screen and (aspect-ratio:16/9)"
color Specifies the bits per color of target display.
"min-" and "max-" prefixes can be used.
Example: media="screen and (color:3)"
color-index Specifies the number of colors the target display can handle.
"min-" and "max-" prefixes can be used.
Example: media="screen and (min-color-index:256)"
monochrome Specifies the bits per pixel in a monochrome frame buffer.
"min-" and "max-" prefixes can be used.
Example: media="screen and (monochrome:2)"
resolution Specifies the pixel density (dpi or dpcm) of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="print and (resolution:300dpi)"
scan Specifies scanning method of a tv display.
Possible values are "progressive" and "interlace".
Example: media="tv and (scan:interlace)"
grid Specifies if the output device is grid or bitmap.
Possible values are "1" for grid, and "0" otherwise.
Example: media="handheld and (grid:1)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="screen and (min-color-index:256)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media Attribute

How to add HTML <area> media width Attribute

width Specifies the width of the targeted display area.
"min-" and "max-" prefixes can be used.
Example: media="screen and (min-width:500px)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media width attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com/avatar.png" media="screen and (min-width:500px)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media width Attribute

How to add HTML <area> media height Attribute

height Specifies the height of the  targeted display area. "min-" and "max-" prefixes can be used.
Example: media="screen and (max-height:700px)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media height attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="screen and (max-height:700px)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media height Attribute

How to add HTML <area> media device-width Attribute

device-width Specifies the width of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="screen and (device-width:500px)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media device-width attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="screen and (device-width:500px)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media device-width Attribute

How to add HTML <area> media device-height Attribute

device-height Specifies the height of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="screen and (device-height:500px)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media device-height attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="screen and (device-height:500px)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media device-height Attribute

How to add HTML <area> media orientation Attribute

orientation Specifies the orientation of the target display/paper.
Possible values: "portrait" or "landscape"
Example: media="all and (orientation: landscape)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media orientation attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="all and (orientation: landscape)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media orientation Attribute

How to add HTML <area> media aspect-ratio Attribute

aspect-ratio Specifies the width/height ratio of the targeted display area.
"min-" and "max-" prefixes can be used.
Example: media="screen and (aspect-ratio:16/9)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media aspect-ratio attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="screen and (aspect-ratio:16/9)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media aspect-ratio Attribute

How to add HTML <area> media device-aspect-ratio Attribute

device-aspect-ratio Specifies the device-width/device-height ratio of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="screen and (aspect-ratio:16/9)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media device-aspect-ratio attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="screen and (aspect-ratio:16/9)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media device-aspect-ratio Attribute

How to add HTML <area> media color Attribute

color Specifies the bits per color of target display.
"min-" and "max-" prefixes can be used.
Example: media="screen and (color:3)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media color attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="screen and (color:3)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media color Attribute

How to add HTML <area> media color-index Attribute

color-index Specifies the number of colors the target display can handle.
"min-" and "max-" prefixes can be used.
Example: media="screen and (min-color-index:256)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media color-index attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="screen and (min-color-index:256)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media color-index Attribute

How to add HTML <area> media monochrome Attribute

monochrome Specifies the bits per pixel in a monochrome frame buffer.
"min-" and "max-" prefixes can be used.
Example: media="screen and (monochrome:2)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media monochrome attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="screen and (monochrome:2)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media monochrome Attribute

How to add HTML <area> media resolution Attribute

resolution Specifies the pixel density (dpi or dpcm) of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="print and (resolution:300dpi)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media resolution attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="print and (resolution:300dpi)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media resolution Attribute

How to add HTML <area> media scan Attribute

scan Specifies scanning method of a tv display.
Possible values are "progressive" and "interlace".
Example: media="tv and (scan:interlace)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media scan attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="tv and (scan:interlace)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media scan Attribute

How to add HTML <area> media grid Attribute

grid Specifies if the output device is grid or bitmap.
Possible values are "1" for grid, and "0" otherwise.
Example: media="handheld and (grid:1)"
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area media grid attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" media="handheld and (grid:1)">
</map>

</body>
</html>

Output should be:

How to add HTML <area> media grid Attribute

How to add HTML <area> referrerpolicy Attribute

Set the referrerpolicy attribute for the area hyperlinks.

Definition and Usage

The referrerpolicy attribute specifies which referrer information to send when the user clicks on the hyperlink.

Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Syntax

<area referrerpolicy="no-referrer|no-referrer-when-downgrade|origin|origin-when-cross-origin|same-origin|strict-origin-when-cross-origin|unsafe-url">

Attribute Values

Value Description
no-referrer No referrer information is sent
no-referrer-when-downgrade Default. Sends the origin, path, and query string if the protocol security level stays the same or is higher (HTTP to HTTP, HTTPS to HTTPS, HTTP to HTTPS is ok). Sends nothing to less secure level (HTTPS to HTTP is not ok)
origin Sends the origin (scheme, host, and port) of the document
origin-when-cross-origin Sends the origin of the document for cross-origin request. Sends the origin, path, and query string for same-origin request
same-origin Sends a referrer for same-origin request. Sends no referrer for cross-origin request
strict-origin-when-cross-origin Sends the origin if the protocol security level stays the same or is higher (HTTP to HTTP, HTTPS to HTTPS, and HTTP to HTTPS is ok). Sends nothing to less secure level (HTTPS to HTTP)
unsafe-url Sends the origin, path, and query string (regardless of security). Use this value carefully!
index.html
Example: HTML
<img src="https://horje.com/uploads/demo/2024-02-19-15-51-41-area11.png"
        alt="" width="300" height="119"
        class="aligncenter size-medium wp-image-910965"
        usemap="#shapemap" />
 
    <map name="shapemap">
        <!-- area tag contained image. -->
        <area shape="poly"
            coords="59,31,28,83,91,83"
            href="https://horje.com/uploads/demo/2024-02-19-15-52-16-area2.png"
            alt="Triangle" referrerpolicy="same-origin">
         

    </map>

Output should be:

How to add HTML <area> referrerpolicy Attribute

How to add HTML <area> referrerpolicy no-referrer Attribute

no-referrer No referrer information is sent
index.html
Example: HTML
<img src="https://horje.com/uploads/demo/2024-02-19-15-51-41-area11.png"
alt="" width="300" height="119"
class="aligncenter size-medium wp-image-910965"
usemap="#shapemap" />
<map name="shapemap">
<!-- area tag contained image. -->
<area shape="poly"
coords="59,31,28,83,91,83"
href="https://horje.com/uploads/demo/2024-02-19-15-52-16-area2.png"
alt="Triangle" referrerpolicy="no-referrer">
</map>

Output should be:

How to add HTML <area> referrerpolicy no-referrer Attribute

How to add HTML <area> referrerpolicy no-referrer-when-downgrade Attribute

no-referrer-when-downgrade Default. Sends the origin, path, and query string if the protocol security level stays the same or is higher (HTTP to HTTP, HTTPS to HTTPS, HTTP to HTTPS is ok). Sends nothing to less secure level (HTTPS to HTTP is not ok)
index.html
Example: HTML
<img src="https://horje.com/uploads/demo/2024-02-19-15-51-41-area11.png"
alt="" width="300" height="119"
class="aligncenter size-medium wp-image-910965"
usemap="#shapemap" />
<map name="shapemap">
<!-- area tag contained image. -->
<area shape="poly"
coords="59,31,28,83,91,83"
href="https://horje.com/uploads/demo/2024-02-19-15-52-16-area2.png"
alt="Triangle" referrerpolicy="no-referrer-when-downgrade">
</map>

Output should be:

How to add HTML <area> referrerpolicy no-referrer-when-downgrade Attribute

How to add HTML <area> referrerpolicy origin Attribute

origin Sends the origin (scheme, host, and port) of the document
index.html
Example: HTML
<img src="https://horje.com/uploads/demo/2024-02-19-15-51-41-area11.png"
alt="" width="300" height="119"
class="aligncenter size-medium wp-image-910965"
usemap="#shapemap" />
<map name="shapemap">
<!-- area tag contained image. -->
<area shape="poly"
coords="59,31,28,83,91,83"
href="https://horje.com/uploads/demo/2024-02-19-15-52-16-area2.png"
alt="Triangle" referrerpolicy="origin">
</map>

Output should be:

How to add HTML <area> referrerpolicy origin Attribute

How to add HTML <area> referrerpolicy origin-when-cross-origin Attribute

origin-when-cross-origin Sends the origin of the document for cross-origin request. Sends the origin, path, and query string for same-origin request
index.html
Example: HTML
<img src="https://horje.com/uploads/demo/2024-02-19-15-51-41-area11.png"
alt="" width="300" height="119"
class="aligncenter size-medium wp-image-910965"
usemap="#shapemap" />
<map name="shapemap">
<!-- area tag contained image. -->
<area shape="poly"
coords="59,31,28,83,91,83"
href="https://horje.com/uploads/demo/2024-02-19-15-52-16-area2.png"
alt="Triangle" referrerpolicy="origin-when-cross-origin">
</map>

Output should be:

How to add HTML <area> referrerpolicy origin-when-cross-origin Attribute

How to add HTML <area> referrerpolicy same-origin Attribute

same-origin Sends a referrer for same-origin request. Sends no referrer for cross-origin request
index.html
Example: HTML
<img src="https://horje.com/uploads/demo/2024-02-19-15-51-41-area11.png"
alt="" width="300" height="119"
class="aligncenter size-medium wp-image-910965"
usemap="#shapemap" />
<map name="shapemap">
<!-- area tag contained image. -->
<area shape="poly"
coords="59,31,28,83,91,83"
href="https://horje.com/uploads/demo/2024-02-19-15-52-16-area2.png"
alt="Triangle" referrerpolicy="same-origin">
</map>

Output should be:

How to add HTML <area> referrerpolicy same-origin Attribute

How to add HTML <area> referrerpolicy strict-origin-when-cross-origin Attribute

strict-origin-when-cross-origin Sends the origin if the protocol security level stays the same or is higher (HTTP to HTTP, HTTPS to HTTPS, and HTTP to HTTPS is ok). Sends nothing to less secure level (HTTPS to HTTP)
index.html
Example: HTML
<img src="https://horje.com/uploads/demo/2024-02-19-15-51-41-area11.png"
alt="" width="300" height="119"
class="aligncenter size-medium wp-image-910965"
usemap="#shapemap" />
<map name="shapemap">
<!-- area tag contained image. -->
<area shape="poly"
coords="59,31,28,83,91,83"
href="https://horje.com/uploads/demo/2024-02-19-15-52-16-area2.png"
alt="Triangle" referrerpolicy="strict-origin-when-cross-origin">
</map>

Output should be:

How to add HTML <area> referrerpolicy strict-origin-when-cross-origin Attribute

How to add HTML <area> referrerpolicy unsafe-url Attribute

unsafe-url Sends the origin, path, and query string (regardless of security). Use this value carefully!
index.html
Example: HTML
<img src="https://horje.com/uploads/demo/2024-02-19-15-51-41-area11.png"
alt="" width="300" height="119"
class="aligncenter size-medium wp-image-910965"
usemap="#shapemap" />
<map name="shapemap">
<!-- area tag contained image. -->
<area shape="poly"
coords="59,31,28,83,91,83"
href="https://horje.com/uploads/demo/2024-02-19-15-52-16-area2.png"
alt="Triangle" referrerpolicy="unsafe-url">
</map>

Output should be:

How to add HTML <area> referrerpolicy unsafe-url Attribute

How to add HTML <area> rel Attribute

Use the rel attribute to specify the relationship between the current document and the linked document:

Definition and Usage

The rel attribute specifies the relationship between the current document and the linked document.

Only used if the href attribute is present.

Browser Support

Syntax

<area rel="value">

Attribute Values

Value Description
alternate Links to an alternate version of the document (i.e. print page, translated or mirror)
author Links to the author of the document
bookmark Permanent URL used for bookmarking
help Links to a help document
license Links to copyright information for the document
next The next document in a selection
nofollow Links to an unendorsed document, like a paid link.
("nofollow" is used by Google, to specify that the Google search spider should not follow that link)
noreferrer Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink
prefetch Specifies that the target document should be cached
prev The previous document in a selection
search Links to a search tool for the document
tag A tag (keyword) for the current document
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="alternate">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel Attribute

How to add HTML <area> rel alternate Attribute

alternate Links to an alternate version of the document (i.e. print page, translated or mirror)
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="alternate">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel alternate Attribute

How to add HTML <area> rel author Attribute

author Links to the author of the document
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="author">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel author Attribute

How to add HTML <area> rel bookmark Attribute

bookmark Permanent URL used for bookmarking
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="bookmark">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel bookmark Attribute

How to add HTML <area> rel help Attribute

help Links to a help document
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="help">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel help Attribute

How to add HTML <area> rel license Attribute

license Links to copyright information for the document
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="license">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel license Attribute

How to add HTML <area> rel next Attribute

next The next document in a selection
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="next">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel next Attribute

How to add HTML <area> rel nofollow Attribute

nofollow Links to an unendorsed document, like a paid link.
("nofollow" is used by Google, to specify that the Google search spider should not follow that link)
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="nofollow">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel nofollow Attribute

How to add HTML <area> rel noreferrer Attribute

noreferrer Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="noreferrer">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel noreferrer Attribute

How to add HTML <area> rel prefetch Attribute

prefetch Specifies that the target document should be cached
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="prefetch">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel prefetch Attribute

How to add HTML <area> rel prev Attribute

prev The previous document in a selection
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="prev">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel prev Attribute

How to add HTML <area> rel search Attribute

search Links to a search tool for the document
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="search">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel search Attribute

How to add HTML <area> rel tag Attribute

tag A tag (keyword) for the current document
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The area rel attribute</h1>

<p>Click on the sun to watch it closer:</p>

<img src="https://horje.com/avatar.png" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://horje.com" rel="tag">
</map>

</body>
</html>

Output should be:

How to add HTML <area> rel tag Attribute
Reffered: https://www.w3schools.com/tags/tag_area.asp



Read Full::
HTML Tag Code
Category:
HTML Code
Sub Category:
HTML Tag Code
Uploaded:
1 month ago
Uploaded by:
Admin
Views:
2

Related Articles
What is HTML <!--...--> Tag HTML Tag Code
What is HTML <!DOCTYPE> Declaration HTML Tag Code
What is HTML Elements and Doctypes HTML Tag Code
What is HTML <a> Tag HTML Tag Code
What is HTML <abbr> Tag HTML Tag Code
What is HTML <address> Tag HTML Tag Code
What is HTML <applet> Tag HTML Tag Code
What is HTML <area> Tag HTML Tag Code
What is HTML <article> Tag HTML Tag Code
What is HTML <aside> Tag HTML Tag Code
What is HTML <audio> Tag HTML Tag Code
What is HTML <b> Tag HTML Tag Code
What is HTML <base> Tag HTML Tag Code
What is HTML <basefont> Tag HTML Tag Code
What is HTML <bdi> Tag HTML Tag Code
What is HTML <bdo> Tag HTML Tag Code
What is HTML <big> Tag HTML Tag Code
What is HTML <blockquote> Tag HTML Tag Code
What is HTML <body> Tag HTML Tag Code
What is HTML <br> Tag HTML Tag Code
What is HTML <button> Tag HTML Tag Code
What is HTML <canvas> Tag HTML Tag Code
What is HTML <caption> Tag HTML Tag Code
What is HTML <center> Tag HTML Tag Code
What is HTML <cite> Tag HTML Tag Code
What is HTML <code> Tag HTML Tag Code
What is HTML <col> Tag HTML Tag Code
How to create HTML <colgroup> Tag HTML Tag Code
What is HTML <data> Tag HTML Tag Code
What is HTML <datalist> Tag HTML Tag Code
What is HTML <dd> Tag HTML Tag Code
What is HTML <del> Tag HTML Tag Code
What is HTML <details> Tag HTML Tag Code
What is HTML <dfn> Tag HTML Tag Code
What is HTML <dialog> Tag HTML Tag Code
What is HTML <dir> Tag HTML Tag Code
What is HTML <div> Tag HTML Tag Code
What is HTML <dl> Tag HTML Tag Code
What is HTML <dt> Tag HTML Tag Code
What is HTML <em> Tag HTML Tag Code
What is HTML <embed> Tag HTML Tag Code
What is HTML <fieldset> Tag HTML Tag Code
What is HTML <figcaption> Tag HTML Tag Code
What is HTML <figure> Tag HTML Tag Code
What is HTML <font> Tag HTML Tag Code
What is HTML <footer> Tag HTML Tag Code
What is HTML <form> Tag HTML Tag Code
What is HTML <frame> Tag HTML Tag Code
What is HTML <frameset> Tag HTML Tag Code
What is HTML <h1> to <h6> Tags HTML Tag Code
What is HTML <head> Tag HTML Tag Code
What is HTML <header> Tag HTML Tag Code
What is HTML <hgroup> Tag HTML Tag Code
What is HTML <hr> Tag HTML Tag Code
What is HTML <html> Tag HTML Tag Code
What is HTML <i> Tag HTML Tag Code
What is HTML <iframe> Tag HTML Tag Code
What is HTML <img> Tag HTML Tag Code

Single Articles
How to create HTML <area> Tag
Browser Support for HTML <area> Tag
Attributes for HTML <area> Tag
Another image map, with clickable areas for HTML <area> Tag
How to set Default CSS Settings for HTML <area> Tag
How to add HTML <area> alt Attribute
How to add HTML <area> coords Attribute
How to add HTML <area> coords x1,y1,x2,y2 Attribute
How to add HTML <area> coords x,y,radius Attribute
How to add HTML <area> download Attribute
How to Specify a value for the download attribute HTML <area> download Attribute
How to add HTML <area> href Attribute
How to add HTML <area> hreflang Attribute
How to add HTML <area> media Attribute
How to add HTML <area> media width Attribute
How to add HTML <area> media height Attribute
How to add HTML <area> media device-width Attribute
How to add HTML <area> media device-height Attribute
How to add HTML <area> media orientation Attribute
How to add HTML <area> media aspect-ratio Attribute
How to add HTML <area> media device-aspect-ratio Attribute
How to add HTML <area> media color Attribute
How to add HTML <area> media color-index Attribute
How to add HTML <area> media monochrome Attribute
How to add HTML <area> media resolution Attribute
How to add HTML <area> media scan Attribute
How to add HTML <area> media grid Attribute
How to add HTML <area> referrerpolicy Attribute
How to add HTML <area> referrerpolicy no-referrer Attribute
How to add HTML <area> referrerpolicy no-referrer-when-downgrade Attribute
How to add HTML <area> referrerpolicy origin Attribute
How to add HTML <area> referrerpolicy origin-when-cross-origin Attribute
How to add HTML <area> referrerpolicy same-origin Attribute
How to add HTML <area> referrerpolicy strict-origin-when-cross-origin Attribute
How to add HTML <area> referrerpolicy unsafe-url Attribute
How to add HTML <area> rel Attribute
How to add HTML <area> rel alternate Attribute
How to add HTML <area> rel author Attribute
How to add HTML <area> rel bookmark Attribute
How to add HTML <area> rel help Attribute
How to add HTML <area> rel license Attribute
How to add HTML <area> rel next Attribute
How to add HTML <area> rel nofollow Attribute
How to add HTML <area> rel noreferrer Attribute
How to add HTML <area> rel prefetch Attribute
How to add HTML <area> rel prev Attribute
How to add HTML <area> rel search Attribute
How to add HTML <area> rel tag Attribute

Share on: