--- id: 5ef9b03c81a63668521804d4 title: Step 32 challengeType: 0 dashedName: step-32 --- # --description-- L'elemento `strong` è usato per sottolineare l'importanza di una parte del testo. Nell'elemento `figcaption` che hai appena aggiunto, indica che `hate` è di grande importanza inserendolo in un elemento `strong`. # --hints-- L'elemento `strong` dovrebbe avere un tag di apertura. I tag di apertura hanno questa sintassi: ``. ```js assert(document.querySelector('strong')); ``` L'elemento `strong` dovrebbe avere un tag di chiusura. I tag di chiusura hanno un carattere `/` subito dopo il carattere `<`. ```js assert(code.match(/<\/strong\>/)); ``` L'elemento `strong` dovrebbe circondare la parola `hate` nel testo `Cats hate other cats.` Hai omesso il testo o hai un refuso. ```js assert( document .querySelectorAll('figcaption')[1] .querySelector('strong') .innerText.toLowerCase() === 'hate' ); ``` Il testo dell'elemento `figcaption` dovrebbe essere `Cats hate other cats.` Controlla eventuali errori e che ci siano gli spazi necessari attorno ai tag di apertura e chiusura dell'elemento `strong`. ```js const secondFigCaption = document.querySelectorAll('figcaption')[1]; assert( secondFigCaption && secondFigCaption.innerText .replace(/\s+/gi, ' ') .trim() .match(/cats hate other cats\.?/i) ); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

Cat Photos

Click here to view more cat photos.

A cute orange cat lying on its back.

Cat Lists

Things cats love:

  • cat nip
  • laser pointers
  • lasagna
A slice of lasagna on a plate.
Cats love lasagna.

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
Five cats looking around a field. --fcc-editable-region--
Cats hate other cats.
--fcc-editable-region--
```