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

55 lines
929 B
Markdown
Raw Normal View History

---
id: 5d822fd413a79914d39e98ca
title: Step 2
challengeType: 0
dashedName: 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.
# --hints--
La dichiarazione `DOCTYPE` dovrebbe essere all'inizio dell'HTML.
```js
assert(__helpers.removeHtmlComments(code).match(/^\s*<!DOCTYPE\s+html\s*>/i));
```
L'elemento `html` dove avere un tag di apertura.
```js
assert(code.match(/<html\s*>/gi));
```
L'elemento `html` dovrebbe avere un tag di chiusura.
```js
assert(code.match(/<\/html\s*>/));
```
I tag `html` dovrebbero essere nell'ordine corretto.
```js
assert(code.match(/<html\s*>\s*<\/html\s*>/));
```
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--
```