Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

area

Description

The area element for HTML represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map.

Syntax

HTML

<area attribute-name="attribute-value"></area>

Attributes

Global

NameValueDescription
altnormal character datafallback content for the image map
coordscircle | polygon | rectanglecoordinates for the shape on the image map
downloadstringdownload the hyperlink destination
hrefURIreference to the hyperlink destination
hreflanglanguage taglanguage of the hyperlink destination
pinglist of URIslist of URLs to notify if a user follows the hyperlink
referrerpolicyempty | no-referrer | no-referrer-when-downgrade | origin | origin-when-cross-origin | same-origin | strict-origin | strict-origin-when-cross-origin | unsafe-urlreferrer policy for fetches initiated by the element
reltokensrelationship between the hyperlink document and the hyperlink destination
shapecircle | polygon | rectangle | defaultshape of the area for the hyperlink on the image map
targetbrowsing-context name or keywordbrowsing context for the hyperlink destination
typeMIME typetype of the hyperlink destination

CSS

area
{
    display: inline;
}

Examples

1 · alt

2 · coords

3 · download

4 · href

5 · hreflang

6 · ping

7 · referrerpolicy

8 · rel

9 · shape

10 · target

11 · type

12 · CSS

!doctype

a

abbr

address

article

aside

audio

b

base

bdi

bdo

blockquote

body

br

button

canvas

caption

cite

code

col

colgroup

data

datalist

dd

del

details

dfn

dialog

div

dl

dt

em

embed

fieldset

figcaption

figure

footer

form

h1

h2

h3

h4

h5

h6

head

header

hgroup

hr

html

i

iframe

img

input

ins

kbd

label

legend

li

link

main

map

mark

menu

meta

meter

nav

noscript

object

ol

optgroup

option

output

p

param

picture

pre

progress

q

rb

rp

rt

rtc

ruby

s

samp

script

search

section

select

slot

small

source

span

strong

style

sub

summary

sup

table

tbody

td

template

textarea

tfoot

th

thead

time

title

tr

track

u

ul

var

video

wbr

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu