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

1.2 KiB

id title challengeType dashedName
60b80da8676fb3227967a731 Step 3 0 step-3

--description--

Vai avanti e collega il tuo file CSS, anche se non hai ancora scritto alcun CSS.

Aggiungi un elemento link con un attributo rel di stylesheet e un href con il valore styles.css.

--hints--

Il codice dovrebbe avere un elemento link.

assert.match(code, /<link/)

L'elemento link dovrebbe essere un elemento autoconcludente.

assert(code.match(/<link[\w\W\s]+\/>/i));

L'elemento link dovrebbe essere all'interno dell'elemento head.

assert(code.match(/<head>[\w\W\s]*<link[\w\W\s]*\/>[\w\W\s]*<\/head>/i))

L'elemento link dovrebbe avere un attributo rel con il valore stylesheet.

assert.match(code, /<link[\s\S]*?rel=('|"|`)stylesheet\1/)

L'elemento link dovrebbe avere un attributo href con il valore styles.css.

assert.match(code, /<link[\s\S]*?href=('|"|`)(\.\/)?styles\.css\1/)

--seed--

--seed-contents--

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Picasso Painting</title>
    --fcc-editable-region--

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