Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."  href="<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."></a>
  

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

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

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

don’t work for me ,
ask me to use ;

Test

Sorry, your code does not pass. Hang in there.

Hint

You should only add one closing anchor (a) tag. Please remove any extras.

You have two of the same lines. Your changes need to happen on the bottom line not the top. Top line needs to be removed, and make the correct changes that the directions say on bottom line

i m stragle en this 15 step , can help please :face_with_head_bandage:

The closing tag should be coming after the quote not before it

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

Try getting rid of the space between the > and <img

What error are you getting?

[quote=“Cody_Biggs, post:9, topic:620279”]
Try getting rid of the space between the > and <img
[/

quote]

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

// running tests You should only add one opening anchor (a)

a

) tag. Please remove any extras. You should only add one closing anchor (a)

a

) tag. Please remove any extras. // tests completed

I return the image to link …but still there is an error :anguished:

Please show all of your code

i can’t send all new user can just send 2 lines ;

      <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>
      <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."</a>
<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

If you can post two lines, you can post it all.

It looks like you changed the p element, which you should not do.

1 Like
<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>
      <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."</a>

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

You shouldn’t change the img element at all. Here you removed the last > of the img element

1 Like

thank you i solve it finaly , so happy :+1: :smiley:

1 Like

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