HTML BASICS: HTML A Tag

HTML <a> Tag

The HTML <a> tag defines an anchor and may be used to establish a link to another document.



href is one of the important attribute of <a> tag.It indicate the link's destination.

HTML Tips

1.download, hreflang, media, rel, target, and type cannot be present if the href attribute is not present.
2.A linked page is normally displayed in the current browser window.

Browser Supports

ElementChromeExplorerFirefoxOperaSafari
<a>YesYesYesYesYes

Global Attributes

The <a> tag supports global attributes in HTML.

Event Attributes

The <a> tag also supports the Event Attributes in HTML.


Related Articles




Jesna N Scaria

Articles : 32

I am a Software Developer at Leedhar Technologies
India India