2020-02-25 22:53:07 -06:00
|
|
|
---
|
|
|
|
id: 5d8a4cfbe6b6180ed9a1c9df
|
2021-10-21 10:07:52 -07:00
|
|
|
title: Step 2
|
2020-02-25 22:53:07 -06:00
|
|
|
challengeType: 0
|
2021-10-21 10:07:52 -07:00
|
|
|
dashedName: step-2
|
2020-02-25 22:53:07 -06:00
|
|
|
---
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --description--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
|
|
|
Next, add opening and closing `html`, `head` and `body` tags below the doctype. Be sure to nest them properly.
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --hints--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
test-text
|
2020-02-25 22:53:07 -06:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```js
|
|
|
|
assert(
|
|
|
|
/<!DOCTYPE\s+html\s*>\s*<html\s*>\s*<head\s*>\s*<\/head\s*>\s*<body\s*>\s*<\/body\s*>\s*<\/html\s*>/gi.test(
|
|
|
|
code
|
|
|
|
)
|
|
|
|
);
|
2020-02-25 22:53:07 -06:00
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --seed--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
## --seed-contents--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --solutions--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
```
|