Advertisement
Home Open Editor ❯

HTML <area> ping Attribute

Example

<img src="desk.jpg" usemap="#image-map">

<map name="image-map">
  <area target="_blank" alt="Computer" href="computer.png" coords="112,31,285,246" shape="rect" ping="https://www.w3seekers.com/pingtracker">
  <area target="_blank" alt="Cup" href="cup.png" coords="327,212,31" shape="circle" ping="https://www.w3seekers.com/pingtracker">
  <area target="_blank" alt="Mobile" href="mobile.png" coords="296,121,326,176" shape="rect" ping="https://www.w3seekers.com/pingtracker">
  <area target="_blank" alt="Book" name="Book" href="book.png" coords="53,132,115,157,72,237,2,211" shape="poly" ping="https://www.w3seekers.com/pingtracker">
</map>

Meaning

The ping attribute specifies a list of URLs to be notified if the user follows the hyperlink.

Typically used for tracking.

Note: Only used if the href attribute is present.


Standard Syntax

<area ping="URL">


Advertisement

Attribute Values

Value Description
URL Specifies the URL to be notified if the user follows the hyperlink. Must be a space separated list of one or more valid URLs
Home Open Editor ❯
Advertisement