Sorry i,m beginner n i ask you for my first project ,how i make my h1 element visible on your webpage by commenting it

Tell us what’s happening:
Describe your issue in detail here.

I’ m trying to uncomment h1,h2 and p element but NO!
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>
-->
<!-- <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> -->

  **Your browser information:**

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

Challenge: Uncomment HTML

Link to the challenge:

Hello! Welcome to the community :partying_face:!

The lesson tells you that the comments on HTML are denoted by <!-- and -->, so, anything between those lines will be ignored by the browser. To uncomment the code, you simply remove these symbols.

For instance, the following code is commented:

<!--
<div class="the-container">
  <h1>This is the header</h1>
</div>
-->

But if I wanted to uncomment the code, the result would be:

<div class="the-container">
  <h1>This is the header</h1>
</div>

Does it help?

thanks you just remove the ?

You have to remove the <!-- and the --> that surround the code:

Compare these two pieces of code:

With comments

<!--
<div class="the-container">
  <h1>This is the header</h1>
</div>
-->

Without comments

<div class="the-container">
  <h1>This is the header</h1>
</div>

:grinning: :grinning: :grinning: thanks it worked

1 Like

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