FAQ: Learn HTML Elements - Common HTML Elements - Linking At Will


This community-built FAQ covers the “Linking At Will” exercise in Codecademy’s lessons on HTML.

Here are the most popular questions on the exercise Linking At Will:

Join the Discussion. We Want to Hear From You!

Have a new question or can answer someone else’s? Reply (reply) to an existing thread!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources about HTML in general? Go here!

Want to take the conversation in a totally different direction? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account, billing, Pro, or Pro Intensive? Reach out to our support team!

None of the above? Find out where to ask other questions here!


Other FAQs

The following are links to additional questions that our community has asked about this exercise:

  • This list will contain other frequently asked questions that aren’t quite as popular as the ones above.
  • Currently there have not been enough questions asked and answered about this exercise to populate this FAQ section.
  • This FAQ is built and maintained by you, the Codecademy community – help yourself and other learners like you by contributing!

Not seeing your question? It may still have been asked before – try searching for it by clicking the spyglass icon (search) in the top-right of this page. Still can’t find it? Ask it below by hitting the reply button below this post (reply).


As the image is a link now as per the exercise. should it open now? little confused. Help


At Linking at Will, the exercise asks to add an image element to the index.html, but the link is to a webpage, not an image. When I click solution to try to see how it’s done, nothing would show up.


We have this element coded in the page…

<img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-image_brownbear.jpg" />

That is a picture of a brown bear. We can make it into a link to the Wikipedia article by wrapping that element in an anchor tag…

    <a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank">
    <img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-image_brownbear.jpg" />

See how the image is now in the place of what might normally be link text? An anchor tag will transform any element into a link. I wrote on separate lines but the entire thing can be written on one line, if we prefer.

For now, ignore the target attribute, as that should come up in another lesson. That lets our link open in a new window so we don’t lose our place in the exercise.


Does anyone else have issues remembering what all of the commands mean? I can’t recall what the target=’_blank’ actually means or does.
Could just google it of course… ha.:expressionless:



A red prickly pear fruit

The src attribute above has the “#” in it. what does that mean, why use it in place of a complete link?


It generally indicates an example URL. In reality, it points to the location bar, or, ‘top of page’. It returns that last requested URL. This is not another request, though. Just the last response. Bear that in mind while you think this through. The response document is already in client memory.

<a href="#">Back to Top of page</a>

We as publishers can tack on page fragments, which is what the hash really is about. Note that CSS denotes the hash symbol as an ID. That means any element with an ID attrbute is a hash designate.

<div id="foo"></div>

<a href="#foo">foo</a>