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

54 lines
980 B
Markdown
Raw Normal View History

---
id: 5d822fd413a79914d39e98c9
title: Step 1
challengeType: 0
dashedName: 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`.
```js
assert(code.match(/<!DOCTYPE/gi));
```
Dovresti includere uno spazio dopo il riferimento `DOCTYPE`.
```js
assert(code.match(/<!DOCTYPE\s+/gi));
```
Dovresti definire il tipo di documento come `html`.
```js
assert(code.match(/html/gi));
```
Dovresti chiudere la dichiarazione `DOCTYPE` con un carattere `>`.
```js
assert(code.match(/html\s*>/gi));
```
La dichiarazione `DOCTYPE` dovrebbe essere all'inizio dell'HTML.
```js
assert(__helpers.removeHtmlComments(code).match(/^\s*<!DOCTYPE\s+html\s*>/i));
```
# --seed--
## --seed-contents--
```html
--fcc-editable-region--
--fcc-editable-region--
```