Learn HTML by Building a Cat Photo App - Step 16

i found it so hard to understand this.

Your code so far

<html>
  <body>

<!-- User Editable Region -->

    <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>
      <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>
      <section> "<h2>,  <p>, (a)" </section>
    </main>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:109.0) Gecko/20100101 Firefox/115.0

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

Link to the challenge:

  1. Take a look at your code. You might see, that you already have an <h2>, a <p> and an <a>.

  2. Take them and nest them inside a <section>. Nesting works like this:

    <element1>
       <element2></element2>
       <element3></element3>
       <element4></element4>
    </element1>
    
    

In this example element1 would be your <section> ,element2 would be your <h2>, element3 would be your <p>, element4 would be your <a> .

1 Like

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