freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-buildin.../615f2abbe7d18d49a1e0e1c8.md

914 B

id title challengeType dashedName
615f2abbe7d18d49a1e0e1c8 Step 1 0 step-1

--description--

Ti abbiamo fornito il testo stardard HTML di base.

Crea un elemento h1 all'interno dell'elemento body e assegnagli il testo Nutrition Facts.

--hints--

Dovresti aggiungere un nuovo elemento h1.

assert.exists(document.querySelector('h1'));

L'elemento h1 dovrebbe essere all'interno dell'elemento body.

assert(document.querySelector('h1')?.parentElement?.localName === 'body');

L'elemento h1 dovrebbe avere il testo Nutrition Facts.

assert(document.querySelector('h1')?.innerText === 'Nutrition Facts');

--seed--

--seed-contents--

--fcc-editable-region--
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Nutrition Label</title>
  </head>
  <body>

  </body>
</html>
--fcc-editable-region--