---
title: Href Attribute
---
## Href Attribute
Href is short for "Hypertext Reference" and is an HTML attribute. The href attribute is mainly used for `` tags to specify the URL for a webpage the link leads to (whether it be on a different section of the same page, or on a completely different webpage).
#### How to use
``
#### Examples
```html
This is an absolute URL
This is a relative URL
```
#### More Information:
[W3Schools](https://www.w3schools.com/tags/att_href.asp)
[HTMLElementReference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)