The aim of this skill test is to help you assess whether you understand how to implement links in HTML.
Note: To get help, read our Test your skills usage guide. You can also reach out to us using one of our communication channels.
Note: Some of the links in the starting code for these tasks have the target="_blank" attribute set on them, so that when you click on them, they will try to open the linked page in a new tab rather than the same tab. This is not strictly best practice, but we've done it here so that the pages don't open in the MDN Playground output <iframe>, getting rid of your example code in the process!
In this task, we want you to help fill in the links on our Whales information page.
To complete the task, update the links as follows:
whales.html, which is in the same directory as the current page.The starting point of the task looks like this:
Here's the underlying code for this starting point:
<h1>Information on Whales</h1>
<p>
For more information on our conservation activities and which Whales we study,
see our <a target="_blank">Whales page</a>.
</p>
<p>
If you want to ask our team more questions, feel free to
<a target="_blank">email us</a>.
</p>The updated content should look like this:
Your finished HTML should look like this:
<h1>Information on Whales</h1>
<p>
For more information on our conservation activities and which Whales we study,
see our <a target="_blank" href="whales.html" title="Includes information on Blue Whales and Sperm Whales">
Whales page</a>.
</p>
<p>
If you want to ask our team more questions, feel free to
<a target="_blank" href="mailto:whales@example.com?subject=Question%20about%20Whales">
email us</a>.
</p>In this task, we want you to fill in the four links so that they link to the appropriate places.
To complete the task, update the links as follows:
blue-whale.jpg, which is located in a directory called blue inside the current directory.narwhal.jpg, which is located in a directory called narwhal, which is located one directory level above the current directory.https://www.google.co.uk, and the image search is located in a subdirectory called imghp.bottom.The starting point of the task looks like this:
Here's the underlying code for this starting point:
<h1>List path tests</h1>
<ul>
<li><a target="_blank">Link me to the blue whale image</a></li>
<li><a target="_blank">Link me to the narwhal image</a></li>
<li><a target="_blank">Link me to Google image search</a></li>
<li><a>Link me to the paragraph at the bottom of the page</a></li>
</ul>
<div></div>
<p id="bottom">The bottom of the page!</p>The updated content should look like this:
Your finished HTML should look like this:
<h1>List path tests</h1>
<ul>
<li><a target="_blank" href="blue/blue-whale.jpg">
Link me to the blue whale image
</a></li>
<li><a target="_blank" href="../narwhal/narwhal.jpg">
Link me to the narwhal image
</a></li>
<li><a target="_blank" href="https://www.google.co.uk/imghp">
Link me to Google image search
</a></li>
<li><a href="#bottom">
Link me to the paragraph at the bottom of the page
</a></li>
</ul>
<div></div>
<p id="bottom">The bottom of the page!</p>The following links link to an info page about Narwhals, a support email address, and a PDF factfile that is 4MB in size.
To complete the task:
The starting point of the task looks like this:
Here's the underlying code for this starting point:
<p>
We do lots of work with Narwhals. To find out more about this work,
<a href="narwhals.html" target="_blank">click here</a>.
</p>
<p>
You can email our support team if you have any more questions —
<a href="mailto:whales@example.com">click here</a> to do so.
</p>
<p>
You can also <a href="factfile.pdf" target="_blank">click here</a> to download
our factfile, which contains lots more information, including an FAQ.
</p>We've not provided finished content for this task, as it would give away the solution. Your finished HTML should look like this:Click here to show the solution
<p>
We do lots of work with Narwhals. <a href="narwhals.html" target="_blank">Find out more about this work</a>.
</p>
<p>
You can <a href="mailto:whales@example.com">email our support team</a> if you have any more questions.
</p>
<p>
You can also <a href="factfile.pdf" target="_blank">download
our factfile</a> (PDF, 4MB), which contains lots more information, including an FAQ.
</p>