Learn HTML by Building a Cat Photo App - Step 4

Tell us what’s happening:

Step 4
Commenting allows you to leave messages without affecting the browser display. It also allows you to make code inactive. A comment in HTML starts with .

Here is an example of a comment with the TODO: Remove h1:

Example Code

Add a comment above the p element with this text:

TODO: Add link to cat photos

WHAT IS THE ANSWER …

Your code so far

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

<!-- User Editable Region -->

    
 <!--<p>TODO: Add link to cat photos</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/130.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 4

Welcome to the forum @Ayedav

The paragraph element is missing.
The paragraph opening and closing tags appear in the comment.

Please reset the step to restore the original code.
Then place the comment element above the paragraph element.

For next time, describe the issue in your own words. Learning to communicate problems is a part of becoming a web developer.

Happy coding

1 Like