* 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
61 lines
995 B
Markdown
61 lines
995 B
Markdown
---
|
|
id: 5f33294a6af5e9188dbdb8f3
|
|
title: Step 5
|
|
challengeType: 0
|
|
dashedName: step-5
|
|
---
|
|
|
|
# --description--
|
|
|
|
The name of the cafe is `CAMPER CAFE`. Add an `h1` element within your `body` element. Give it the name of the cafe in capitalized letters to make it stand out.
|
|
|
|
# --hints--
|
|
|
|
You should have an opening `<h1>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<h1>/i));
|
|
```
|
|
|
|
You should have a closing `</h1>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<\/h1>/i));
|
|
```
|
|
|
|
You should not change your existing `body` element.
|
|
|
|
```js
|
|
assert($('body').length === 1);
|
|
```
|
|
|
|
Your `h1` element should be nested in your `body` element.
|
|
|
|
```js
|
|
assert($('h1')[0].parentElement.tagName === "BODY");
|
|
```
|
|
|
|
Your `h1` element should have the text `CAMPER CAFE`.
|
|
|
|
```js
|
|
assert(code.match(/<h1>CAMPER CAFE<\/h1>/));
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Cafe Menu</title>
|
|
</head>
|
|
--fcc-editable-region--
|
|
<body>
|
|
</body>
|
|
--fcc-editable-region--
|
|
<html>
|
|
```
|