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

57 lines
1.3 KiB
Markdown
Raw Normal View History

---
id: 60b69a66b6ddb80858c5157a
title: Step 4
challengeType: 0
dashedName: step-4
---
# --description--
FontAwesome è una biblioteca di icone SVG, molte delle quali possono essere usate gratuitamente. Utilizzerai alcune di queste icone in questo progetto, quindi ti servirà il link a un foglio di stile esterno al tuo HTML.
Aggiungi un elemento `link` con un `rel` di `stylesheet` e un `href` con il valore `https://use.fontawesome.com/releases/v5.8.2/css/all.css`.
# --hints--
Dovresti aggiungere un altro elemento `link`.
```js
assert(document.querySelectorAll('link').length === 2);
```
L'elemento `link` dovrebbe avere un `rel` con il valore `stylesheet`.
```js
assert(document.querySelectorAll('link')?.[1]?.getAttribute('rel') === 'stylesheet');
```
L'elemento `link` dovrebbe avere un `href` con il valore `https://use.fontawesome.com/releases/v5.8.2/css/all.css`.
```js
assert(document.querySelectorAll('link')?.[1]?.getAttribute('href') === 'https://use.fontawesome.com/releases/v5.8.2/css/all.css')
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Picasso Painting</title>
<link rel="stylesheet" href="./styles.css" />
--fcc-editable-region--
--fcc-editable-region--
</head>
<body>
</body>
</html>
```
```css
```