--- id: bad87fee1348bd9aedf08804 title: Comment out HTML challengeType: 0 videoUrl: 'https://scrimba.com/p/pVMPUv/cGyGbca' --- ## Description
Remember that in order to start a comment, you need to use <!-- and to end a comment, you need to use --> Here you'll need to end the comment before your h2 element begins.
## Instructions
Comment out your h1 element and your p element, but not your h2 element.
## Tests
```yml tests: - text: Comment out your h1 element so that it is not visible on your page. testString: 'assert(($("h1").length === 0), "Comment out your h1 element so that it is not visible on your page.");' - text: Leave your h2 element uncommented so that it is visible on your page. testString: 'assert(($("h2").length > 0), "Leave your h2 element uncommented so that it is visible on your page.");' - text: Comment out your p element so that it is not visible on your page. testString: 'assert(($("p").length === 0), "Comment out your p element so that it is not visible on your page.");' - text: 'Be sure to close each of your comments with -->.' testString: 'assert(code.match(/[^fc]-->/g).length > 1, "Be sure to close each of your comments with -->.");' - text: Do not change the order of the h1 h2 or p in the code. testString: 'assert((code.match(/<([a-z0-9]){1,2}>/g)[0]==="

" && code.match(/<([a-z0-9]){1,2}>/g)[1]==="

" && code.match(/<([a-z0-9]){1,2}>/g)[2]==="

") , "Do not change the order of the h1 h2 or p in the code.");' ```

## Challenge Seed
```html ```
## Solution
```js // solution required ```