* 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.0 KiB
Markdown
62 lines
1.0 KiB
Markdown
---
|
|
id: 5f3313e74582ad9d063e3a38
|
|
title: Step 2
|
|
challengeType: 0
|
|
dashedName: step-2
|
|
---
|
|
|
|
# --description--
|
|
|
|
Add a `head` element within the `html` element, so you can add a `title` element. The title element's text should be `Cafe Menu`.
|
|
|
|
# --hints--
|
|
|
|
You should have an opening `<head>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<head>/i));
|
|
```
|
|
|
|
You should have a closing `</head>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<head>/i));
|
|
```
|
|
|
|
You should have an opening `<title>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<title>/i));
|
|
```
|
|
|
|
You should have a closing `</title>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<\/title>/i));
|
|
```
|
|
|
|
Your `<title>` element should be nested in your `<head>` element.
|
|
|
|
```js
|
|
assert(code.match(/<head>\s*<title>.*<\/title>\s*<\/head>/si));
|
|
```
|
|
|
|
Your `<title>` element should have the text `Cafe Menu`. You may need to check your spelling.
|
|
|
|
```js
|
|
assert.match(document.querySelector('title')?.innerText, /Cafe Menu/i);
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
--fcc-editable-region--
|
|
|
|
--fcc-editable-region--
|
|
</html>
|
|
```
|