Open In App
Related Articles

HTML <a> ping Attribute

Improve Article
Save Article
Like Article

The HTML <a> ping Attribute is generally used to either specify a particular URL or a list of URLs that will be notified when the user will click on the hyperlink passed int HTML <a> href Attribute. This is achieved by sending a short HTTP post request to the specified URL as soon as the user clicks on the hyperlink. 

Syntax :

<a href="url_hyperlink" ping="specified_url" />

Attribute Values:

  • specified_url: This is the URL where the short HTTP post request will be sent as soon as the user follows the link given in url_hyperlink.



<!DOCTYPE html>
  <head> </head>
    <h2>Welcome To GFG</h2>
    <a href=
      Read codersaty articles


Note: A short HTTP post request will be sent to “” whenever someone clicks  “Read codersaty articles”

Supported Browsers: 

  • Edge 17.0
  • Apple Safari 6.0
  • Opera 15.0
  • Google Chrome 12.0
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 19 Jul, 2022
Like Article
Save Article
Similar Reads
Complete Tutorials