* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
71 lines
1.5 KiB
Markdown
71 lines
1.5 KiB
Markdown
---
|
|
id: bad87fee1348bd9aedf08802
|
|
title: Uncomment HTML
|
|
challengeType: 0
|
|
videoUrl: 'https://scrimba.com/p/pVMPUv/cBmG9T7'
|
|
forumTopicId: 18329
|
|
dashedName: uncomment-html
|
|
---
|
|
|
|
# --description--
|
|
|
|
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.
|
|
|
|
Commenting is also a convenient way to make code inactive without having to delete it entirely.
|
|
|
|
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);
|
|
```
|
|
|
|
Your `p` element should be visible on the page by uncommenting it.
|
|
|
|
```js
|
|
assert($('p').length > 0);
|
|
```
|
|
|
|
No trailing comment tags should be visible on the page (i.e. `-->`).
|
|
|
|
```js
|
|
assert(!$('*:contains("-->")')[1]);
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```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>
|
|
-->
|
|
```
|
|
|
|
# --solutions--
|
|
|
|
```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>
|
|
```
|