2019-11-05 03:01:05 +00:00
|
|
|
---
|
|
|
|
id: 5d822fd413a79914d39e98cb
|
|
|
|
title: Part 3
|
|
|
|
challengeType: 0
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: part-3
|
2019-11-05 03:01:05 +00:00
|
|
|
---
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --description--
|
2019-11-05 03:01:05 +00:00
|
|
|
|
|
|
|
Next, add opening and closing `head` and `body` tags within the html element.
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --hints--
|
2019-11-05 03:01:05 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
test-text
|
2019-11-05 03:01:05 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
```js
|
|
|
|
assert(
|
|
|
|
code.match(
|
|
|
|
/<html\s*>\s*<head\s*>\s*<\/head\s*>\s*<body\s*>\s*<\/body\s*>\s*<\/html\s*>/gi
|
|
|
|
)
|
|
|
|
);
|
2019-11-05 03:01:05 +00:00
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --seed--
|
2019-11-05 03:01:05 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --seed-contents--
|
2019-11-05 03:01:05 +00:00
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
</html>
|
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --solutions--
|
2019-11-05 03:01:05 +00:00
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
```
|