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


#1

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!


#2

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).


#3

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


#4

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.


#5

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" />
    </a>

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.


#6

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: