Learn HTML by Building a Cat Photo App - Step 15

they say:
You are missing a closing (a ) tag after the image.

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>
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

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

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

Link to the challenge:

You have an extra </a> closure

2 Likes

After the img or alt? i’ve tried both ways

Hello.

1.- The alt is an attribute for the img element. You don´t need open a tag with alt
2.- You must close the a element after all attributes.

Summarizing:
remove the </a> < before alt.

Grets.

3 Likes

thank you, got it. but anyway… they keep saying that i am missing a closing (a ) tag after the image :face_in_clouds:

Summarizing:
remove the </a> < before alt.

2 Likes

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

1 Like

I’d reset the code, as you have a bunch of changes outside of the editable region.

Then you can use this correct line here:

1 Like

:exploding_head:
Thank you!! i am just starting… :woman_shrugging:

2 Likes

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