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

1.2 KiB

id title challengeType dashedName
5f344fc1520b6719f2e35605 Passo 9 0 step-9

--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>.

assert(code.match(/<section\s*>/i));

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

assert(code.match(/<\/section\s*>/i));

O elemento preexistente main deve permanecer o mesmo. Verifique se você não excluiu a tag de fechamento.

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

O elemento section deve estar dentro do elemento main.

const main = document.querySelector('main');
const section = document.querySelector('section');
assert(section.parentElement === main);

--seed--

--seed-contents--

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