freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-css-variables-by-buil.../5d822fd413a79914d39e98ca.md

1.0 KiB

id title challengeType dashedName
5d822fd413a79914d39e98ca Step 2 0 step-2

--description--

Aggiungi i tag di apertura e chiusura html sotto DOCTYPE in modo da avere un posto dove iniziare a inserire del codice. Assicurati di impostare la lingua sull'inglese.

--hints--

La dichiarazione DOCTYPE dovrebbe essere all'inizio dell'HTML.

assert(__helpers.removeHtmlComments(code).match(/^\s*<!DOCTYPE\s+html\s*>/i));

L'elemento html dovrebbe avere una tag di apertura con un attributo lang di en.

assert(code.match(/<html\s+lang\s*=\s*('|")en\1\s*>/gi));

L'elemento html dovrebbe avere un tag di chiusura.

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

I tag html dovrebbero essere nell'ordine corretto.

assert(code.match(/<html\s+lang\s*=\s*('|")en\1\s*>\s*<\/html\s*>/));

Dovresti avere un solo elemento html.

assert(document.querySelectorAll('html').length === 1);

--seed--

--seed-contents--

<!DOCTYPE html>
--fcc-editable-region--

--fcc-editable-region--