Links (a and href)
An attribute on the <a> element that specifies the URL destination of the hyperlink. Without href, the link has no destination to navigate to.
What it does: href="guide.html" is the destination. The <a> element sits inline inside the paragraph. <a> is the anchor element for hyperlinks. <link> is a head element used to attach stylesheets - it does not create clickable links. href holds the URL destination on <a> elements. src is used on <img> and <script> to specify a file path. Relative URLs like about.html point to pages within the same site. Absolute URLs include the full protocol: https://example.com. The text between <a href="..."> and </a> is what the user sees and clicks. The URL goes inside the href attribute. HTML tag names must be lowercase. <A> is non-standard - use <a>.
Common mistakes: The href attribute is missing its value. It must be href="url" with a destination URL in double quotes. The href value is missing its closing double quote. It should be href="index.html".
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
hrefFill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →