Files
Shaun Hamilton 25aa04e2e7 chore(curriculum): standardise titles for rwd-beta (#45398)
* 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
2022-03-14 16:54:43 +01:00

60 lines
1.0 KiB
Markdown

---
id: 5f332b23c2045fb843337579
title: Step 7
challengeType: 0
dashedName: step-7
---
# --description--
Since the `p` element added in the previous step provides supplemental information about the cafe, nest both the `h1` and `p` elements in a `header` element.
# --hints--
You should have an opening `<header>` tag.
```js
assert(code.match(/<header>/i));
```
You should have a closing `</header>` tag.
```js
assert(code.match(/<\/header>/i));
```
Your `h1` element should be nested in your `header` element.
```js
const header = document.querySelectorAll('header')[0];
assert(header.children[0].tagName === 'H1');
```
Your `p` element should be nested in your `header` element.
```js
const header = document.querySelectorAll('header')[0];
assert(header.children[1].tagName === "P");
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Cafe Menu</title>
</head>
<body>
--fcc-editable-region--
<h1>CAMPER CAFE</h1>
<p>Est. 2020</p>
--fcc-editable-region--
</body>
<html>
```