Learn HTML by Building a Cat Photo App - Step 4

Hi, I am new to programming and I have an error in this code and I can’t fix it. The instructions say: Commenting allows you to leave messages without affecting the browser display. It also allows you to make the code inactive. A comment in HTML starts with . For example, the comment contains the text TODO: Remove h1.

Add a comment on element p with this text:

TODO: Add link to cat pictures.

But when I do, it gives error, and I have tried in different ways, I have put it in the middle of the tags

, also below p and above, but it doesn’t work. Anyone knows why?

<html>
  <body>
    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>

<!-- User Editable Region -->

    
  <!-- TODO: Add link to cat photos -->
    <p></p>
 
    

<!-- User Editable Region -->

  </body>
</html>

Hello! Diana: you comment should be put after the h1 element like this:
h1 element
comment
paragraph(

)
make sure to write text in the p element. then h2 element will instructed later after a few steps. try out and see

Done, thanks for the help :slight_smile:

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