HTML Class I need help with

Tell us what’s happening:

Your code so far


<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>
<!--HTML-->
<h1>Hello World</h1><p>Hello Paragraph</p>-->
<h2>Cat PhotoApp</p>-->
<!--<h1>Hello World</h1><p>Cat PhotoApp</p>-->

I have ran this code but it’s still not working, I was asked to comment h1 and p element such that it isn’t visible on the page and I should uncommented h2 , so it is not visible on the page too. Am stuck here. What can I do?

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 6.0; Infinix HOT 4 Lite Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/55.0.2883.91 Mobile Safari/537.36 PHX/4.4.

Challenge: Comment out HTML

Link to the challenge:

Hi @Roberto! Here’s the html comment syntax:

<!--HTML-->

It appears to me that while you have the right arrow, you perhaps did not write the left one. Try including it and see if it works.

there should be only three elements in your code, two in comments (commented out) and one visible in the preview

you have added more elements, which you shouldn’t have.

I suggest you reset your code, and remember at the end you need to just have CatPhotoApp visible in the preview. And you just need to change (add/delete) comment tags: remember that a comment starts with <!-- and ends with -->

1 Like