chore(i18n,curriculum): processed translations (#43760)

This commit is contained in:
camperbot
2021-10-07 09:08:50 -07:00
committed by GitHub
parent 571b4c0354
commit ff58255b26
9 changed files with 65 additions and 40 deletions

View File

@ -2,7 +2,6 @@
id: bad87fee1348bd9aedf08812
title: Aggiungere immagini al tuo sito web
challengeType: 0
videoUrl: 'https://scrimba.com/p/pVMPUv/c8EbJf2'
forumTopicId: 16640
dashedName: add-images-to-your-website
---
@ -37,7 +36,7 @@ Cerchiamo di aggiungere un'immagine al nostro sito web:
All'interno dell'elemento `main` esistente, inserisci un elemento `img` prima degli elementi `p` esistenti.
Ora imposta l'attributo `src` in modo che punti all'url `https://www.bit.ly/fcc-relaxing-cat`
Ora imposta l'attributo `src` in modo che punti all'url `https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg`
Infine, non dimenticare di dare al tuo elemento `img` un attributo `alt` con il relativo testo.
@ -52,7 +51,7 @@ assert($('img').length);
La tua immagine dovrebbe avere un attributo `src` che punta all'immagine del gattino.
```js
assert(/^https:\/\/(www\.)?bit\.ly\/fcc-relaxing-cat$/i.test($('img').attr('src')));
assert(/^https:\/\/cdn\.freecodecamp\.org\/curriculum\/cat-photo-app\/relaxing-cat\.jpg$/i.test($('img').attr('src')));
```
L'elemento `alt` della tua immagine non dovrebbe essere vuoto.
@ -86,7 +85,7 @@ assert(
```html
<h2>CatPhotoApp</h2>
<main>
<a href="#"><img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>