2018-09-30 22:01:58 +00:00
---
id: bad87fee1348bd9aedf08802
title: Uncomment HTML
challengeType: 0
videoUrl: 'https://scrimba.com/p/pVMPUv/cBmG9T7'
2019-07-31 18:32:23 +00:00
forumTopicId: 18329
2021-01-13 02:31:00 +00:00
dashedName: uncomment-html
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2018-09-30 22:01:58 +00:00
Commenting is a way that you can leave comments for other developers within your code without affecting the resulting output that is displayed to the end user.
2020-11-27 18:02:05 +00:00
2018-09-30 22:01:58 +00:00
Commenting is also a convenient way to make code inactive without having to delete it entirely.
2020-11-27 18:02:05 +00:00
Comments in HTML start with `<!--` and end with a `-->`
# --instructions--
Uncomment your `h1` , `h2` and `p` elements.
# --hints--
Your `h1` element should be visible on the page by uncommenting it.
```js
assert($('h1').length > 0);
```
Your `h2` element should be visible on the page by uncommenting it.
```js
assert($('h2').length > 0);
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
Your `p` element should be visible on the page by uncommenting it.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
assert($('p').length > 0);
```
No trailing comment tags should be visible on the page (i.e. `-->` ).
```js
assert(!$('*:contains("-->")')[1]);
```
# --seed--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
## --seed-contents--
2018-09-30 22:01:58 +00:00
```html
<!--
< 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 >
-->
```
2020-11-27 18:02:05 +00:00
# --solutions--
2018-09-30 22:01:58 +00:00
2020-07-13 16:58:50 +00:00
```html
2019-01-24 21:03:03 +00:00
< 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 >
2018-09-30 22:01:58 +00:00
```