Pls how will I comment out my p element

Tell us what’s happening:

Your code so far

<!--
<h1>Hello World</h1>
<!--hello world-->
<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>
<!--<p>hello paragraph</p>-->

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Linux; Android 7.0; Infinix X559 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/comment-out-html

You need to change your <p>Hello Paragraph</p> paragraph into a comment.

It looks like you added a new paragraph— <!--<p>hello paragraph</p>--> —as a comment instead of changing the existing paragraph into a comment.

1 Like

This is exactly what I’m writing “” and this is where i’m hanging since last 3day.

Click the Reset your code button, so you start with the following code again. Then, ONLY add <!-- and --> where you want to comment out a section of html. Do not add anything other code or rearrange the existing code.

<!--
<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>
-->
2 Likes

Thanks you. Let me try it and feed you back.