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

980 B

id title challengeType dashedName
5d822fd413a79914d39e98c9 Step 1 0 step-1

--description--

Benvenuto nel progetto CSS Variables Skyline! Inizia aggiungendo la dichiarazione !DOCTYPE html in cima al documento in modo che il browser sappia quale tipo di documento sta leggendo.

--hints--

Il codice dovrebbe contenere il riferimento DOCTYPE.

assert(code.match(/<!DOCTYPE/gi));

Dovresti includere uno spazio dopo il riferimento DOCTYPE.

assert(code.match(/<!DOCTYPE\s+/gi));

Dovresti definire il tipo di documento come html.

assert(code.match(/html/gi));

Dovresti chiudere la dichiarazione DOCTYPE con un carattere >.

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

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

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

--seed--

--seed-contents--

--fcc-editable-region--

--fcc-editable-region--