I would some help with assisting me in my code

Greetings Everyone,

I am currently trying to figure out my code. Are you all able to help assist

Here is the coding prompt:

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 . For example, the comment contains the text TODO: Remove h1.

Add a comment above the p element with this text:

TODO: Add link to cat photos

Here is my prompt:

<p>See more cat photos in our gallery.</p>

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

<h1>CatPhotoApp</h1>

<h2>Cat Photos</h2>

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

<p>This is a paragraph of text for the CatPhotoApp.</p>

Freecodecamp is still saying that my code is wrong

Hello. They are asking you to add a comment, as follows:

<EXCLAMATION MARK-- This is a comment – >

Hope this helped!

Edit: earlier I posted comment tips for CSS, actually. Also, I tried to post the comment as intended, and it seems that the browser actually comments it out, lol. So, just note that where I typed “EXCLAMATION MARK”, you simply need to put “!”. And there you go.

Thank you so much! How about now?

<p>See more cat photos in our gallery.</p>

<!-- This is a comment -- >

<h1>CatPhotoApp</h1>

<h2>Cat Photos</h2>

<!-- This is a comment -->

<p>This is a paragraph of text for the CatPhotoApp.</p>

Sorry, I am new to coding

Wrap your code in three backticks. So like three backticks, then a new line, your code, new line, three backticks.

Or click the little cog and there’s a menu item that says “preformatted text”, does the same thing.

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