freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-basic-css-by-building.../5f3313e74582ad9d063e3a38.md

1.1 KiB

id title challengeType dashedName
5f3313e74582ad9d063e3a38 Step 2 0 step-2

--description--

Aggiungi un elemento head all'interno dell'elemento html, in modo da poter aggiungere un elemento title. Il testo dell'elemento title dovrebbe essere Cafe Menu.

--hints--

Dovresti avere un tag di apertura <head>.

assert(code.match(/<head>/i));

Dovresti avere un tag di chiusura </head>.

assert(code.match(/<head>/i));

Dovresti avere un tag di apertura <title>.

assert(code.match(/<title>/i));

Dovresti avere un tag di chiusura </title>.

assert(code.match(/<\/title>/i));

L'elemento title dovrebbe essere annidato nell'elemento head.

assert(code.match(/<head>\s*<title>.*<\/title>\s*<\/head>/si));

L'elemento title dovrebbe avere il testo Cafe Menu. Controlla la tua ortografia.

assert.match(document.querySelector('title')?.innerText, /Cafe Menu/i);

--seed--

--seed-contents--

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

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