--- id: bad87fee1348cd8acdf08812 title: Creare un bottone con Bootstrap challengeType: 0 forumTopicId: 16811 dashedName: create-a-bootstrap-button --- # --description-- Bootstrap ha i suoi stili per gli elementi `button`, e questo li fa apparire molto più belli di quelli dell'HTML semplice. Crea un nuovo elemento `button` sotto alla foto grande dei gattini. Dagli le classi `btn` e `btn-default`, e il testo di `Like`. # --hints-- Dovresti creare un nuovo elemento `button` con il testo `Like`. ```js assert( new RegExp('like', 'gi').test($('button').text()) && $('img.img-responsive + button.btn').length > 0 ); ``` Il tuo nuovo pulsante dovrebbe avere due classi: `btn` e `btn-default`. ```js assert($('button').hasClass('btn') && $('button').hasClass('btn-default')); ``` Tutti i tuoi elementi `button` dovrebbero avere tag di chiusura. ```js assert( code.match(/<\/button>/g) && code.match(/ ``` # --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
```