freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-the-css-box-model-by-.../60a3e3396c7b40068ad69970.md

1.0 KiB

id title challengeType dashedName
60a3e3396c7b40068ad69970 Step 7 0 step-7

--description--

Prima di poter iniziare a definire lo stile dell'elemento div che hai aggiunto, devi collegare il tuo CSS al tuo HTML.

Aggiungi un elemento link per collegare il file styles.css. Imposta l'attributo href su ./styles.css e ricorda di impostare l'attributo rel su stylesheet.

--hints--

Il codice dovrebbe avere un elemento link.

assert(/<link/.test(code))

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

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

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

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

--seed--

--seed-contents--

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

--fcc-editable-region--
  </head>
  <body>
    <div class="canvas">
    </div>
  </body>
</html>