Build a Cat Photo App - Step 14

Tell us what’s happening:

What is the solution if i want to add an achor inside the paragraph element?

Your code so far

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

<!-- User Editable Region -->

      <p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg" alt=cute cats</a></p>

<!-- User Editable Region -->

      <p>See more <a 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.">
    </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/141.0.0.0 Safari/537.36

Challenge Information:

Build a Cat Photo App - Step 14

Hi.

Try and work out what is wrong. You have already done an anchor element inside a paragraphy element at line 8. Why not apply the syntax there to answer this step?

Why have you added an alt attribute? You have an alt attribute at line 9. You will see they are for images. Do you have an image here? Also you were not asked to add it.

I suggest you reset the step as you have changed the seed code. Only make the changes asked for.

1 Like

you already did something similar here

1 Like

Thank you so much! I am going to check the code again.

1 Like