Files
freeCodeCamp/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f344fc1520b6719f2e35605.md
Naomi Carrigan 16e7cdedb1 feat: migrate filenames to IDs (#45146)
* feat: migrate filenames to IDs

* feat: migrate balance sheet file names

* revert: no id name for cert projects

* fix: i swear i know what i'm doing
2022-03-02 09:06:00 -06:00

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>
```