Stuck on the commenting, maybe something I'm missing. ^^

Tell us what’s happening:

I’m doing what it says I’m supposed to do. but it say don’t make the comment show, but it doesn’t show. I’m making the code correct but it won’t work, maybe I’m missing something. it says no especially on the <p code. but I made them the same.

Your code so far

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


<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><!--oko

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15.

Challenge: Comment out HTML

Link to the challenge:

Hi @jazz1!

This is how to comment out tags.

<!-- tag goes here -- >

Hope that helps!

hello, thank you for your time. :slight_smile: I know it don’t say that in the code I send but that’s exactly what I’m doing but it don’t seem to work.

So you are placing the comment tags next to the h1 which is why it is not working. I am wrapping the comment around the h1.

<!--not correct-->
<h1>Hello World</h1><!--ji-->

<!--<tag>text goes here</tag>-->

Make sense now?

Yep it is still the same issue.

Place your h1 and p tags inside the comments. Just like my last post. If done correctly then you will see only the h2 on the far right side.

What it should look like

Haha njaa not really… :confused: I tried that it did not work, but I don’t know if something is wrong with my page. because I did one programming first that says do it on h1, h2 an p and everything went well and then I came here to h1 and p. and doing the same thing it won’t work. first it passed on the h1 but not on the p and then I tried again and it said no on both and says:
element should be commented out so that it is not visible on the page.

Can I see your most recent code that you think is correct?

Actually let’s try this. Let me see your code just for the h1 commented out.

You can enter a code block into a forum post, by preceding it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

But I’m not supposed to change the order of the tags. now I can’t make any codes work.

I just want to see your code just for the h1. Can you post that in the forum for me please?

I got it!!! Thank you , Finally. now I understand what you mean. thank you so much for your time. it wasn’t so easy to understand that because the didn’t explain it so well.

1 Like

Cool! Good job!

Happy coding!

you to.