How to comment HTML

How to comment HTML
0

#1

Tell us what’s happening:
how to comment html

Your code so far

<!-->this is my</h1-->
<h1>Hello World</h1><!--this is fun-->

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>
-->

Your browser information:

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

Link to the challenge:


#2

Comment out your h1 element so that it is not visible on your page

Comment out your p element so that it is not visible on your page

how to do these two points


#3

Comments start with <!-- and end with -->
These should be around the things you want to comment out.


#4

i did but still showing two erors


#5

You comment out the h1 like so:
<!--<h1>Hello World</h1>-->


#6

so how to do it wil you write me plzz


#7

I already showed how to do it for the h1, you need to do that and also do something very similar for the p tag.


#8

Sometimes it helps to have a blank after <!-- and another blank before -->.


#9

Comment out your p element so that it is not visible on your page

Comment out your h1 element so that it is not visible on your page

i finding these erors


#10

Try this:

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

CatPhotoApp

<!-- <p>Hello Paragraph</p>–>

Don’t comment out <h2> </h2>


#11

We can do this by changing the style of your h2 element


#12

how to do this one help me


#13

our h2 element should be red how to do this


#14

<h2 style="color: blue;">Hello World</h2>

alternatively

<style>
 h2 {
color: blue;
}
</style>

<h2>Hello World</h2>