61 lines
1.2 KiB
Markdown
61 lines
1.2 KiB
Markdown
---
|
|
id: 5f344fc1520b6719f2e35605
|
|
title: Passo 8
|
|
challengeType: 0
|
|
dashedName: step-8
|
|
---
|
|
|
|
# --description--
|
|
|
|
No menu, haverá duas seções, uma para cafés e outra para sobremesas. Adicione um elemento `section` dentro do elemento `main` para que você tenha um lugar onde colocar todos os cafés disponíveis.
|
|
|
|
# --hints--
|
|
|
|
Você deve acrescentar uma tag de abertura `<section>`.
|
|
|
|
```js
|
|
assert(code.match(/<section\s*>/i));
|
|
```
|
|
|
|
Você deve acrescentar uma tag de fechamento `</section>`.
|
|
|
|
```js
|
|
assert(code.match(/<\/section\s*>/i));
|
|
```
|
|
|
|
O elemento preexistente `main` deve permanecer o mesmo. Verifique se você não excluiu a tag de fechamento.
|
|
|
|
```js
|
|
assert($('main').length === 1);
|
|
```
|
|
|
|
O elemento `section` deve estar dentro do elemento `main`.
|
|
|
|
```js
|
|
const main = document.querySelector('main');
|
|
const section = document.querySelector('section');
|
|
assert(section.parentElement === main);
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Cafe Menu</title>
|
|
</head>
|
|
<body>
|
|
--fcc-editable-region--
|
|
<main>
|
|
<h1>CAMPER CAFE</h1>
|
|
<p>Est. 2020</p>
|
|
</main>
|
|
--fcc-editable-region--
|
|
</body>
|
|
</html>
|
|
```
|