2022-06-07 17:06:49 +00:00
---
id: 5d822fd413a79914d39e98ca
title: Step 2
challengeType: 0
dashedName: step-2
---
# --description--
2022-08-16 07:09:24 +00:00
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.
2022-06-07 17:06:49 +00:00
# --hints--
La dichiarazione `DOCTYPE` dovrebbe essere all'inizio dell'HTML.
```js
assert(__helpers.removeHtmlComments(code).match(/^\s*<!DOCTYPE \s+html \s*> /i));
```
2022-07-08 17:58:33 +00:00
L'elemento `html` dovrebbe avere una tag di apertura con un attributo `lang` di `en` .
2022-06-07 17:06:49 +00:00
```js
2022-07-08 17:58:33 +00:00
assert(code.match(/< html \s+ lang \s*= \s*('|") en \1\s* > /gi));
2022-06-07 17:06:49 +00:00
```
L'elemento `html` dovrebbe avere un tag di chiusura.
```js
assert(code.match(/< \/html \s* > /));
```
I tag `html` dovrebbero essere nell'ordine corretto.
```js
2022-07-08 17:58:33 +00:00
assert(code.match(/< html \s+ lang \s*= \s*('|") en \1\s* > \s*< \/html \s* > /));
2022-06-07 17:06:49 +00:00
```
Dovresti avere un solo elemento `html` .
```js
assert(document.querySelectorAll('html').length === 1);
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
--fcc-editable-region--
--fcc-editable-region--
```