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

1.1 KiB

id title challengeType dashedName
5f332b23c2045fb843337579 Step 7 0 step-7

--description--

Per far sapere ai visitatori che il bar è stato fondato nel 2020, aggiungi un elemento p sotto l'elemento h1 con il testo Est. 2020.

--hints--

Dovresti avere un tag di apertura <p>.

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

Dovresti avere un tag di chiusura </p>.

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

Non dovresti modificare l'elemento h1 già esistente. Assicurati di non aver eliminato il tag di chiusura.

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

L'elemento p dovrebbe trovarsi sotto l'elemento h1.

assert($('p')[0].previousElementSibling.tagName === 'H1');

L'elemento p dovrebbe avere il testo Est. 2020.

assert(document.querySelector("p").innerText === "Est. 2020");

--seed--

--seed-contents--

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