--- id: 60b69a66b6ddb80858c51578 title: Step 1 challengeType: 0 dashedName: step-1 --- # --description-- Inizia impostando la struttura HTML di base. Aggiungi una dichiarazione `` e un elemento `html` con un attributo `lang` con valore di `en`. All'interno dell'elemento `html`, aggiungi un elemento `head` e un elemento `body`. # --hints-- Il codice dovrebbe contenere il riferimento `DOCTYPE`. ```js assert(code.match(/`. ```js assert(code.match(/html\s*>/gi)); ``` La dichiarazione `DOCTYPE` dovrebbe essere all'inizio dell'HTML. ```js assert(__helpers.removeHtmlComments(code).match(/^\s*/i)); ``` L'elemento `html` dovrebbe avere un attributo `lang` con valore di `en` ```js assert(code.match(//gi)); ``` L'elemento `html` dovrebbe avere un tag di chiusura. ```js assert(code.match(/<\/html\s*>/)); ``` Dovresti avere un tag `head` di apertura. ```js assert(code.match(//i)); ``` Dovresti avere un tag `head` di chiusura. ```js assert(code.match(/<\/head\s*>/i)); ``` Dovresti avere un tag `body` di apertura. ```js assert(code.match(//i)); ``` Dovresti avere un tag `body` di chiusura. ```js assert(code.match(/<\/body\s*>/i)); ``` Gli elementi `head` e `body` dovrebbero essere fratelli. ```js assert(document.querySelector('head')?.nextElementSibling?.localName === 'body'); ``` L'elemento `head` dovrebbe essere all'interno dell'elemento `html`. ```js assert([...document.querySelector('html')?.children].some(x => x?.localName === 'head')); ``` L'elemento `body` dovrebbe essere all'interno dell'elemento `html`. ```js assert([...document.querySelector('html')?.children].some(x => x?.localName === 'body')); ``` # --seed-- ## --seed-contents-- ```html --fcc-editable-region-- --fcc-editable-region-- ``` ```css ```