Make your first links

Add two links to a page.

What to build

A paragraph with one link to another site and one to another page of your site.

Requirements

  • A link with the text MDN that goes to https://developer.mozilla.org.
  • A link with the text About us that goes to about.html.

Constraints

Use a elements. Both links should be inside one p.

Example

<a href="https://example.com">Example</a>

Why it works

An absolute address works from anywhere, and a relative one finds a file next to the current page.

Hints

Hint 1

The address goes in href and the words go between the tags.

Solution

Show one correct solution (try it yourself first)
<p>Read the docs on <a href="https://developer.mozilla.org">MDN</a>, or find out more <a href="about.html">About us</a>.</p>

Lesson: Links and how pages connect →