I need help in HTML basic

Tell us what’s happening:

I have done a successful comment but the test didn’t go to the next lesson.

Your code so far


<!--This is the first attempt to learn-->
<h1>Hello World</h1>

<h2>CatPhotoApp</h2>
<!-- This is the Second attempt to learn-->
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36.

Challenge: Comment out HTML

Link to the challenge:

1 Like

You need to comment out h1 and the p element.
to comment out an element use <!-- example -->

2 Likes

Hey, I think you are supposed to comment your <h1> and <p> . but you are not doing but you have created your own comment. You shoul dthink of it a bit, read the explanation carefully twice of more if it dosn;t make sense at first. Good luck and keep me posted. Happy to help :slight_smile:

2 Likes

The challenge is not asking you to create a comment.

When the lesson starts everything is commented out. Nothing showing in the live preview.
From the lesson;
“In order to start a comment, you need to use <!-- and to end a comment, you need to use -->

So where would you put --> to comment out the h1 element?

When you do that you’ll see the h2 element and the p element are both uncommented.
Where would you put <!-- to comment out the p element so that the h2 element still is uncommented?

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

<h2>CatPhotoApp</h2>
<!--
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
-->

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.