2020-09-03 19:12:42 -07:00
|
|
|
---
|
|
|
|
id: 5f3326b143638ee1a09ff1e3
|
2021-10-21 10:07:52 -07:00
|
|
|
title: Step 4
|
2020-09-03 19:12:42 -07:00
|
|
|
challengeType: 0
|
2021-10-21 10:07:52 -07:00
|
|
|
dashedName: step-4
|
2020-09-03 19:12:42 -07:00
|
|
|
---
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --description--
|
2020-09-03 19:12:42 -07:00
|
|
|
|
|
|
|
To prepare to create some actual content, add a `body` element below the `head` element.
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --hints--
|
2020-09-03 19:12:42 -07:00
|
|
|
|
2021-07-21 12:03:09 -07:00
|
|
|
You should have an opening `<body>` tag.
|
2020-09-03 19:12:42 -07:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```js
|
2021-07-21 12:03:09 -07:00
|
|
|
assert(code.match(/<body>/i));
|
|
|
|
```
|
|
|
|
|
|
|
|
You should have a closing `</body>` tag.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert(code.match(/<\/body>/i));
|
|
|
|
```
|
|
|
|
|
|
|
|
You should not change your `head` element. Make sure you did not delete your closing tag.
|
2020-09-03 19:12:42 -07:00
|
|
|
|
2021-07-21 12:03:09 -07:00
|
|
|
```js
|
|
|
|
assert(code.match(/<head>/i));
|
|
|
|
assert(code.match(/<\/head>/i));
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `body` element should come after your `head` element.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert(code.match(/<\/head>[.\n\s]*<body>/im));
|
2020-09-03 19:12:42 -07:00
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --seed--
|
2020-09-03 19:12:42 -07:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
## --seed-contents--
|
2020-09-03 19:12:42 -07:00
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2020-11-27 19:02:05 +01:00
|
|
|
--fcc-editable-region--
|
2020-09-03 19:12:42 -07:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2022-03-14 15:54:43 +00:00
|
|
|
<title>Cafe Menu</title>
|
2020-09-03 19:12:42 -07:00
|
|
|
</head>
|
2020-11-27 19:02:05 +01:00
|
|
|
--fcc-editable-region--
|
2020-09-03 19:12:42 -07:00
|
|
|
<html>
|
|
|
|
```
|
|
|
|
|