freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-intermediate-css-by-b.../60b69a66b6ddb80858c51579.md

1.2 KiB

id title challengeType dashedName
60b69a66b6ddb80858c51579 Step 2 0 step-2

--description--

All'interno dell'elemento head, aggiungi un tag meta con l'attributo charset impostato su utf-8. Aggiungi anche un elemento title con il testo Picasso Painting.

--hints--

Dovresti aggiungere solo un elemento meta.

assert(document.querySelectorAll('meta').length === 1);

L'elemento meta dovrebbe avere l'attributo charset.

assert(document.querySelector('meta')?.getAttribute('charset'));

L'attributo charset dovrebbe essere impostato su utf-8.

assert(document.querySelector('meta')?.getAttribute('charset')?.toLowerCase() === 'utf-8');

Dovresti aggiungere un solo elemento title.

assert(document.querySelectorAll('title').length === 1);

L'elemento title dovrebbe avere il testo Picasso Painting. Fai attenzione all'ortografia e alle maiuscole/minuscole.

assert(document.querySelector('title')?.innerText === 'Picasso Painting');

--seed--

--seed-contents--

<!DOCTYPE html>
<html lang="en">
  <head>
  --fcc-editable-region--

  --fcc-editable-region--
  </head>
  <body>
  </body>
</html>