Learn HTML by Building a Cat Photo App - Step 5

html5 i literally don’t understand main element


<!-- User Editable Region -->

<h1</>
<p</>

    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>See more cat photos in our gallery.</p>
    

<!-- 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 5

Link to the challenge:

Welcome to our community!

It this challenge you get the following code:


    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>See more cat photos in our gallery.</p>
    

Your task is to surround these four code lines with ‘main’ tags. As you can see, the blank space is already provided to you above the h1 element. There goes the opening <main> tag. The blank space is left after the p element too. Here, goes the closing </main> tag.

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