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

1.1 KiB

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

--description--

Ci saranno due sezioni nel menù, una per il caffè e una per i dessert. Aggiungi un elemento section all'interno dell'elemento main in modo da avere uno spazio in cui inserire tutti i caffè disponibili.

--hints--

Dovresti avere un tag di apertura <section>.

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

Dovresti avere un tag di chiusura </section>.

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

Non dovresti cambiare l'elemento main esistente. Assicurati di non aver eliminato il tag di chiusura.

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

L'elemento section dovrebbe essere all'interno dell'elemento main.

const main = document.querySelectorAll('main')?.[0];
assert(main.children[0].tagName === 'SECTION');

--seed--

--seed-contents--

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