Links

(Hypertext) links in HTML let us link to:

  1. other websites,
  2. other pages of the same website,
  3. a part of the current page.

Links are created with the a element (a stands for anchor) and its href attribute (hypertext reference). The content of the element is the text the user sees, and the value of the href attribute is the address the user goes to after clicking.

This code:

<a href="https://en.wikipedia.org/">Link to Wikipedia</a>

Will be displayed like this:

Link to Wikipedia

We see the content of the element as text, but clicking it takes us to the page in the href attribute. So the content can be any text: it doesn't change where the link leads.

Instructions

After the last div element, create a link (an a element) with the content Source that leads to this page: https://en.wikipedia.org/wiki/Cat.

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

2/12