* chore: rename files * chore: update codebase * chore: proper title case * chore: missed block name Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
62 lines
1.1 KiB
Markdown
62 lines
1.1 KiB
Markdown
---
|
|
id: 5f344fc1520b6719f2e35605
|
|
title: Step 9
|
|
challengeType: 0
|
|
dashedName: step-9
|
|
---
|
|
|
|
# --description--
|
|
|
|
There will be two sections on the menu, one for coffees and one for desserts. Add a `section` element within the `main` element so you have a place to put all the coffees available.
|
|
|
|
# --hints--
|
|
|
|
You should have an opening `<section>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<section\s*>/i));
|
|
```
|
|
|
|
You should have a closing `</section>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<\/section\s*>/i));
|
|
```
|
|
|
|
You should not change your existing `main` element. Make sure you didn't delete the closing tag.
|
|
|
|
```js
|
|
assert($('main').length === 1);
|
|
```
|
|
|
|
Your `section` element should be within your `main` element.
|
|
|
|
```js
|
|
const main = document.querySelectorAll('main')?.[0];
|
|
assert(main.children[0].tagName === 'SECTION');
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Camper Cafe Menu</title>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>CAMPER CAFE</h1>
|
|
<p>Est. 2020</p>
|
|
</header>
|
|
--fcc-editable-region--
|
|
<main>
|
|
</main>
|
|
--fcc-editable-region--
|
|
</body>
|
|
<html>
|
|
```
|