Link Overview

Definition and Usage

The HTML <a> (an anchor) tag creates a hyperlink (link) to files, emails, telephone numbers, SMS messages, a section of a web page being viewed, web pages on the same or external website via its href attribute. Here are some of the known and less known attributes of the anchor tag.

Link Attributes

  • charset (obsolete)
  • coords (obsolete)
  • download
  • href
  • hreflang
  • media
  • name (obsolete)
  • ping
  • referrerpolicy
  • rel
  • rev (obsolete)
  • shape (obsolete)
  • target
  • title (optional)
  • type

Browser Support

  • Chrome
  • Firefox
  • Internet Explorer/Edge
  • Safari
  • Opera

Additional browser compatibility and support can be found on the MDN Web Docs

A note to our visitors

This website has updated its privacy policy in compliance with changes to European Union data protection law, for all members globally. We’ve also updated our Privacy Policy to give you more information about your rights and responsibilities with respect to your privacy and personal information. Please read this to review the updates about which cookies we use and what information we collect on our site. By continuing to use this site, you are agreeing to our updated privacy policy.