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
Name | Value | Description |
---|---|---|
alt | normal character data | fallback content for the image map |
coords | circle | polygon | rectangle | coordinates for the shape on the image map |
download | string | download the hyperlink destination |
href | URI | reference to the hyperlink destination |
hreflang | language tag | language of the hyperlink destination |
ping | list of URIs | list of URLs to notify if a user follows the hyperlink |
referrerpolicy | no-referrer | Specifies that no referrer information is to be sent along with requests to any origin. |
no-referrer-when-downgrade | Sends a request’s full referrerURL stripped for use as a referrer for requests: whose referrerURL and current URL are both potentially trustworthy URLs, or whose referrerURL is a non-potentially trustworthy URL. | |
origin | Specifies that only the ASCII serialization of the request’s referrerURL is sent as referrer information when making both same-origin-referrer requests and cross-origin-referrer requests. | |
origin-when-cross-origin | Specifies that a request’s full referrerURL is sent as referrer information when making same-origin-referrer requests, and only the ASCII serialization of the origin of the request’s referrerURL is sent as referrer information when making cross-origin-referrer requests. | |
same-origin | Specifies that a request’s full referrerURL is sent as referrer information when making same-origin-referrer requests. | |
strict-origin | Sends the ASCII serialization of the origin of the referrerURL for requests: whose referrerURL and current URL are both potentially trustworthy URLs, or whose referrerURL is a non-potentially trustworthy URL. | |
strict-origin-when-cross-origin | empty | Specifies that a request’s full referrerURL is sent as referrer information when making same-origin-referrer requests, and only the ASCII serialization of the origin of the request’s referrerURL when making cross-origin-referrer requests: whose referrerURL and current URL are both potentially trustworthy URLs, or whose referrerURL is a non-potentially trustworthy URL. | |
unsafe-url | Specifies that a request’s full referrerURL is sent along for both same-origin-referrer requests and cross-origin-referrer requests. | |
rel | tokens | relationship between the hyperlink document and the hyperlink destination |
shape | circle | polygon | rectangle | default | shape of the area for the hyperlink on the image map |
target | browsing-context name or keyword | browsing context for the hyperlink destination |
type | MIME type | type 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
Links
Elements
- !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