href (C1)
attribute
Pronunciation: [ˈeɪtʃ ˌɑːr ˈiː ˈɛf]
Definition
An HTML attribute used in an anchor tag (`<a>`) to define the URL of the page that the link points to.
Examples
The `href` attribute in the `<a>` tag is essential for creating hyperlinks.
Make sure the `href` value is correctly formatted to avoid broken links.
You can use relative or absolute paths in the `href` attribute.
Browse the full Anaversity dictionary