Related Articles

Related Articles

HTML | <area> media Attribute
  • Last Updated : 27 Sep, 2019

The HTML area media attribute is used to specify the media or device the target URL is optimized for.
this attribute specify the style is for specific devices like print media or speech. This attribute can accept several values. Only used if the href attribute is present. This attribute is purely advisory.


<area media="value">

Possible Operators:

Value Description
and AND operator
not NOT operator
, OR operator


Value Description
all 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 Low resolution or limited scroll ability type devices like Television.


Value Description
width Targeted display area’s width.
height Targeted display area’s height
device-width Target display or paper’s width.
device-height Target display or paper’s height.
orientation Target display or paper’s orientation.
aspect-ratio Width/height ratio of the targeted display area.
device-aspect-ratio Device-width/device-height ratio of the target display/paper.
color Bits per color of target display.
color-index Number of colors the target display can handle.
monochrome Bits per pixel in a monochrome frame buffer.
resolution Pixel density (dpi or dpcm) of the target display/paper.
scan Scanning method of a tv display.
grid If the output device is grid or bitmap.

Note: Prefixes like “min-“ and “max-“ can be used.






<!DOCTYPE html>
        HTML area rel Attribute
<body style="text-align:center;">
    <img src=
         usemap="#shapemap" />
    <map name="shapemap">
        <!-- area tag contained image. -->
        <area shape="poly" 
              coords="59, 31, 28, 83, 91, 83" 
              media="screen and (min-color-index:256)">
        <area shape="circle" 
              coords="155, 56, 26" 
        <area shape="rect"
              coords="224, 30, 276, 82" 



Supported Browsers: The browsers supported by HTML area media attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera


My Personal Notes arrow_drop_up
Recommended Articles
Page :