Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Links (a and href) worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<a href="about.html">About us</a> | A<p>Read the <a href="guide.html">guide</a>.</p> | |
| 2<a href="https://bbc.com">BBC</a> | Bhref must have a value - href="url" with a destination URL in double quotes | |
| 3href specifies the URL destination - without it the anchor has no link to follow | CAn absolute URL link - includes the full protocol https:// to navigate to an external site | |
| 4<a> is an inline element - it wraps text inside block elements like <p> or <li> | D<href> is not an HTML element - use <a href="page.html">Go</a> instead | |
| 5<a href>Click here</a> | EA link that navigates to about.html when clicked - 'About us' is the visible clickable text | |
| 6<href="page.html">Go</href> | F<li><a href="shop.html">Shop</a></li> |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
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.<a href="about.html">About</a><a href="contact.html">Contact</a><p>See the <a href="faq.html">FAQ</a> page.</p><a href="https://example.com">Visit</a><a href="home.html">Home</a>