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.">
         <a href="https://freecatphotoapp.com">cat photos</a>
    </main>
  </body>
</html>

Your mobile information:

TECNO LE6 - Android 11 - Android SDK 30

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

Link to the challenge:

Hey! This is what shows up when I try to run your code.

image

In HTML, Nesting is when you have one element inside of another element. for example:

<html>
  <head>
  </head>
</html>

In the above example, the head element is nested inside of the html element. In the same way, You need to nest the img element inside of the a element to complete this challenge!

Hope this helps :smile:

2 Likes

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