freeCodeCamp/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-basic-css-by-building.../5f33310c1851c6c4da013250.md

1.1 KiB

id title challengeType dashedName
5f33310c1851c6c4da013250 Passo 8 0 step-8

--description--

É hora de adicionar o conteúdo do menu. Adicione um elemento main abaixo do elemento existente header. Mais pra frente ele conterá informações sobre preços dos cafés e sobremesas oferecidas pela cafeteria.

--hints--

Você deve acrescentar uma tag de abertura <main>.

assert(code.match(/<main>/i));

Você deve acrescentar uma tag de fechamento </main>.

assert(code.match(/<\/main>/i));

Você deve manter o elemento preexistente header. Verifique se você não excluiu a tag de fechamento.

assert($('header').length === 1);

O elemento main deve estar depois do elemento header.

const main = document.querySelectorAll('main')[0];
assert(main.previousElementSibling.tagName === 'HEADER');

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
  </head>
  <body>
--fcc-editable-region--
    <header>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
    </header>
--fcc-editable-region--
  </body>
<html>