Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Describe your issue in detail here.
I’m meant to turn the words “cat photos” into a link to https://freecatphotoapp.com" by adding opening and closing (a) tags around the words “cat photos”

I’ve done this with the anchor being <a href=‘cat photos’ but its not working…
Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more<a href="cat photos"</a>in our gallery<p>
      <a href="https://freecatphotoapp.com">link to cat pictures</a>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15

Challenge: Learn HTML by Building a Cat Photo App - Step 12

Link to the challenge:

The href value is not supposed to be cat photos. That is the link text. The href value is the URL you want the link to go to. That is given to you in the instructions.

ok I understand that now at least. so I get that the href value is to be used once in this command and is meant to be used before the url and the closing anchor being

however I’m very confused was I found a link to how to code this part of the question and complete it correctly. it is as follows

<p>See more <a href="https://freecatphotoapp.com" target="_blank"> cat photos</a> in our gallery.</p>

however nowhere in the question does it say anything about adding the words, target=_blank">. how is a beginner meant to understand this if its not even in the question?

You do not need the target attribute on the cat photos link to pass this step. The instructions do not ask you to add it and the tests do not require it. I don’t know where you found information that said it was required but that information is wrong.

ah ok, thanks. first day learning code so not really understanding yet. I’ve posted another question about trying to wrap anchor tags around a url to assign it to an image of cat

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.