--- id: bad87fee1348cd8acef08813 title: Stilizzare azioni facoltative con btn-info challengeType: 0 forumTopicId: 16770 dashedName: call-out-optional-actions-with-btn-info --- # --description-- Bootstrap è dotato di diversi colori predefiniti per i pulsanti. La classe `btn-info` viene utilizzata per richiamare l'attenzione sulle azioni facoltative che l'utente può intraprendere. Crea un nuovo pulsante Bootstrap a livello di blocco sotto il tuo pulsante `Like` con il testo `Info`, e aggiungi la classe `btn-info` di Bootstrap. Nota che questi pulsanti hanno ancora bisogno delle classi `btn` e `btn-block`. # --hints-- Dovresti creare un nuovo elemento `button` con il testo `Info`. ```js assert(new RegExp('info', 'gi').test($('button').text())); ``` Entrambi i pulsanti di Bootstrap dovrebbero avere le classi `btn` e `btn-block`. ```js assert($('button.btn-block.btn').length > 1); ``` Il tuo nuovo pulsante dovrebbe avere la classe `btn-info`. ```js assert($('button').hasClass('btn-info')); ``` Tutti i tuoi elementi `button` dovrebbero avere dei tag di chiusura. ```js assert( code.match(/<\/button>/g) && code.match(/

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back. Three kittens running towards the camera.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```