Learn HTML by Building a Cat Photo App - Step 4

i have tried my best but still i can’t seem to know how to create a comment with p
how will i create a comment with <!-- and ← use p

Your code so far


<!-- User Editable Region -->

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

    <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/127.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 4

hi and welcome to the forum.

for this step, please read these instructions again:

Example Code

<!-- TODO: Remove h1 -->

Add a comment above the p element with this text:
TODO: Add link to cat photos

They want you to go to the line (the empty line) above the p element and write a
comment.
They gave you an example so you can copy it.
But then you have to change the example to contain the text they want instead.

1 Like

Hey Buddy, You Know Commenting anything in html is a amazing thing.

By doing this we can make our code more easy.

<!-- Here You can write anything -->

For more good advice you can follow @hbar1st advice!!

Do Provide us your updated code too !!

2 Likes

Hi! Replies above already explained how comments work in html well. I would like to add that a shortcut for commenting in vscode is command + / or control + /. You can use this shortcut in html/css/javascript and other files.