* chore(curriculum): accessibility-quiz * chore(curriculum): cafe-menu * chore(curriculum): ferris-wheel * chore(curriculum): fix ferris-wheel tests * chore(curriculum): colored-markers * chore(curriculum): photo-gallery * chore(curriculum): magazine * chore(curriculum): penguin * chore(curriculum): city-skyline * chore(curriculum): registration-form * chore(curriculum): picasso-painting * chore(curriculum): balance-sheet * chore(curriculum): piano * chore(curriculum): rothko-painting * fix: title min 15 chars
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>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>
|
|
```
|