Comment out HTML 5

Comment out HTML 5
0
#1

Tell us what’s happening:
Lost on yet another one. My brain is a bit fried from trying to remember these, but they are fun to do! :slight_smile:

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

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/comment-out-html

0 Likes

#2

You got this one. You know what a comment looks like now. Think about it for a bit, re-read the challenge text, see if you can figure it out.

Just in case you have not noticed it, there are videos you can watch by pressing the “Watch a video” button. They give a spoiler alert so you can press pause if you don’t want the answer given to you.

0 Likes

#3

The videos do not work for me on my laptop, and I’m not sure why. I’m using the Google Chrome browser, but no video will pop up to work.

0 Likes

#4

Comment out your h1 element and your p element, but not your h2 element.

You have learned how to use comments. In this case you have to add the bits necessary to make your h1 and p commented out so that they don’t show un the page to the right, but your h2 not commented so that instead it shows.

Remember that in order to start a comment, you need to use <!-- and to end a comment, you need to use -->

0 Likes

#5

<!–

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

–>

That’s what I have, but it keeps saying this:

Do not change the order of the h1 h2 or p in the code.

What should I do to revise this?

0 Likes

#6

Do you maybe have smart punctuation active?
You are typing <!– but you need <!--

You have also broken this one <h1>Hello World</h1–>, the closing tag has an extra character
Also this <!–p>Kitty ip

The issue is that the tests are checking exactly for those tags, you have removed them

0 Likes

#7

I don’t know what smart punctuation is to have it active. So, I need to put in:

< !--

Hello World</1> -->

and

< !--

Kitty ip

-->

in order for it to work?

0 Likes

#8

You are missing the opening tags, the test tells you specifically to not change those

Smart punctuation is a thing that change automatically certain characters to others

0 Likes

#9

Ah, thank you so much! It finally worked! Again, thank you so much, @ieahleen! I don’t know where I’d be without help of others on this site. It’s my 3rd day being on here, and I’m having a blast! :slight_smile:

1 Like

#10

Does nothing happen when you click the video button or does the video just not load?

Anyway, here is the list of FCC videos on scrimba, if you scroll down to the bottom you can get the list of videos for the HTML and CSS

0 Likes

#11

Nothing appears when I click the video button. I’ll have to get a screenshot of it to show what it does.

0 Likes

#12

Maybe you have some extension install that is blocking the video from opening. Try running Chrome in a Incognito Window see if the video works then.

Did you try the videos I posted the link to, can you play those videos? Here are the HTML videos as a list.

0 Likes

#13

This is exactly what it shows as for the “Watch A Video” button.

And yes I have tried those videos you posted the link to. They are very helpful.

0 Likes

#14

OK well, then the video is just not loading for you. It might be a bit much to try and troubleshoot it. Did you try using Incognito? You can also try Firefox just as a test.

Anyway, the videos I posted are the exact same as the ones you get when clicking the video button. You just have to find the right one for the challenge. But that shouldn’t be too hard, they should be in the same order and have the same title as the challenges.

0 Likes

#15

They were easy to find. Thank you, @lasjorg, for giving me the link :slight_smile: I’m using the videos for help whenever I need it on these that lessons that I need help with :slight_smile:

0 Likes