HTML | href Attribute
The HTML <a> href Attribute is used to specify the URL of the page that the link goes to. When the href attribute is not present in the <a> an element that it will not be a hyperlink.
This attribute is used to specify a link to any address. This attribute is used along with <a> tag.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
- absolute URL: It points to another website.
- relative URL: It points to a file within a website.
- anchor URL: It points to an anchor within a page.
Example: This Example illustrates the use of href attribute in <a> element.
Supported Browsers: The browser supported by HTML | <a>href Attribute are listed below:
- Google Chrome
- Internet Explorer