HTML TRAINING · LESSON 3 OF 4 · 3 MIN READ

Create a usable link

Connect descriptive link text to a real destination.

Understand the idea

An anchor element creates a link when it has an appropriate href. The visible text should make its purpose understandable. An absolute URL includes a scheme and host, while a relative URL is resolved against the current page. Choose the form that fits the actual destination.

Work through it

Put the destination in a quoted href attribute and meaningful text between the anchor tags. Check the link target and wording together. Do not use another person’s private URL or credentials in a public example. The practice activity supplies its own required destination.

SEE IT IN CONTEXT

Worked example

<a href="https://example.org/workshops">Explore upcoming workshops</a>

The text explains the destination. The example uses a reserved example domain; replace it only with an appropriate real destination when building a real site.

Common mistakes to avoid

  • Leaving out href.
  • Using a label that misrepresents the destination.
  • Publishing private tokens in a URL.

NOW HAVE A GO

Build a student event card

Apply the idea in the linked activity. Follow its own brief and values; examples in this lesson are illustrative.

Try the practice activity →Download the practice starter
About the linked activity

The linked HTML activity checks one event-card brief as structure. It does not run submitted scripts, publish a website or cover every HTML element. The four lessons build toward the same card activity.

Reading marks are self-reported and saved only in this browser.

0 of 4 lessons marked as read

Keep learning: Reference documentation ↗

YOUR LEARNING JOURNEY

Look how far you’ve come.

Your progress is saved in this browser. Clearing browser data removes it.

Manage saved progress

This removes your completed-challenge history from this browser.