Learn HTML by Building a Cat Photo App - Step 4

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

I don’t know about “Commenting allows you to leave messages without affecting the browser display”

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

<!-- User Editable Region -->

<!--Todo:Remove h1--><Todo: Add link to cat>
    <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/122.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 4

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Welcome to the forum @asvida123

You added a comment using the example given in the instructions.

Remove the first comment element.

The modify the second element into a comment.

  1. after the opening angular bracket add an exclamation mark followed by two hyphens
  2. after the word cat add a space then the word photos
  3. add a single space, then two hyphens before the closing angular bracket.

Commenting is used when a message or text is placed inside a html document. The text within the comment element is made invisible to the browser, so it does not show in the display.

It is often used to break code into sections, or explain how a particular piece of code is used.

Happy coding

You should have one comment by itself above your p element that says “TODO: Add link to cat photos.”

A comment looks like this: <!--Example> .
Not like this: <Todo: Add link to cat>.

Keep trying! :smile:

This is a comment in HTML.
Anything which is enclosed between <!-- and --> will be ignored when your code is executed.
This allows you to write comments in your code to explain your code to others or demarcate different sections of your code, for example.

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