The href Attribute — HTML

The <a> tag defines a hyperlink — a link to somewhere else on your site, or a link to somewhere else on the internet — that you place around certain text that you want to be the link text. This is done with the href attribute, which specifies the url that you are trying to link to.

<a href=“https://www.projeda.com/tech”>Learn modern science and technology on Projeda!</a>

<< HTML Attributes                  src Attribute >>

You are currently working on a course in HTML, to continue navigate using the links above to the next section, or you can return to the Table of Contents.

Cite This Article

MLA

West, Brandon. "The href Attribute — HTML". Projeda, April 22, 2024, https://www.projeda.com/href-attribute-html-course/. Accessed May 3, 2025.

  • Categories