English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete List of HTML Tags

HTML: <a> ping attribute

The ping attribute is triggered when the user clicks on the href link, which sends a ping request for tracking

HTML <a> tag

Online Examples

when the user clicks on oldtoolbag.com/notify oldtoolbag.com/trackpings:

 <a href="https://www.oldtoolbag.com/html" ping="https://www.oldtoolbag.com/trackpings">

Definition and Usage

The ping attribute specifies the list of URLs that will be notified if the user follows the hyperlink.

When the user clicks on a hyperlink, the ping attribute will send a brief HTTP POST request to the specified URL.

This attribute is for monitoring/Tracking is very useful.

Browser Support

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

Attribute




pingYesNoYesNoYes

HTML 4.01and HTML5difference

The ping attribute is an HTML5A new attribute for the <a> tag in HTML.

Syntax

<a ping="URL">

Attribute Value

ValueDescription
URLSpecify if the URL of the hyperlink followed by the user should be notified. It must be a space-separated list of one or more valid URLs.