--- id: bad87fee1348ce8acef08814 title: Warn Your Users of a Dangerous Action with btn-danger challengeType: 0 forumTopicId: 18375 --- ## Description
Bootstrap comes with several pre-defined colors for buttons. The btn-danger class is the button color you'll use to notify users that the button performs a destructive action, such as deleting a cat photo. Create a button with the text "Delete" and give it the class btn-danger. Note that these buttons still need the btn and btn-block classes.
## Instructions
## Tests
```yml tests: - text: You should create a new button element with the text "Delete". testString: assert(new RegExp("Delete","gi").test($("button").text())); - text: All of your Bootstrap buttons should have the btn and btn-block classes. testString: assert($("button.btn-block.btn").length > 2); - text: Your new button should have the class btn-danger. testString: assert($("button").hasClass("btn-danger")); - text: All of your button elements should have closing tags. testString: assert(code.match(/<\/button>/g) && code.match(/

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```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
```