1.1 KiB
1.1 KiB
id | title | challengeType | dashedName |
---|---|---|---|
613297a923965e0703b64796 | Step 2 | 0 | step-2 |
--description--
Potresti già avere familiarità con l'elemento meta
; viene utilizzato per specificare informazioni sulla pagina, come titolo, descrizione, parole chiave e autore.
Assegna alla tua pagina un elemento meta
con un valore charset
appropriato.
L'attributo charset
specifica la codifica dei caratteri della pagina, e al giorno d'oggi UTF-8
è l'unica codifica supportata dalla maggior parte dei browser.
--hints--
Dovresti creare un elemento meta
dentro il tuo elemento head
.
assert.exists(document.querySelector('head > meta'));
Dovresti assegnare al tag meta
un attributo charset
con valore UTF-8
.
assert.equal(document.querySelector('head > meta')?.getAttribute('charset'), 'UTF-8');
--seed--
--seed-contents--
<!DOCTYPE html>
<html lang="en">
--fcc-editable-region--
<head>
<link rel="stylesheet" href="styles.css" />
</head>
--fcc-editable-region--
<body>
</body>
</html>
body {
background: #f5f6f7;
color: #1b1b32;
font-family: Helvetica;
margin: 0;
}