Lesson 11 of 32
Links
Links
A link is an <a> element (anchor). Its href attribute holds the destination — another website, one of your own pages, or a spot further down the same page.
See it run:
Try it Yourself
Loading editor…
Result
Key points
<a href="…">text</a>makes a link.hrefis the destination.- Use full URLs for other sites, short paths for your own pages.
Your turn: change the link text and the destination.
Q&A · 0
Enrol to ask questions and join the discussion.
No questions yet — be the first to ask.