--- id: bad87fee1348bd9aedc08845 title: Add Font Awesome Icons to all of our Buttons challengeType: 0 forumTopicId: 16637 required: - link: 'https://use.fontawesome.com/releases/v5.8.1/css/all.css' raw: true dashedName: add-font-awesome-icons-to-all-of-our-buttons --- # --description-- Font Awesome is a convenient library of icons. These icons can be web fonts or vector graphics. These icons are treated just like fonts. You can specify their size using pixels, and they will assume the font size of their parent HTML elements. # --instructions-- Use Font Awesome to add an `info-circle` icon to your info button and a `trash` icon to your delete button. **Note:** The `span` element is an acceptable alternative to the `i` element for the directions below. # --hints-- You should add a `` within your info button element. ```js assert( $('.btn-info > i').is('.fas.fa-info-circle') || $('.btn-info > span').is('.fas.fa-info-circle') ); ``` You should add a `` within your delete button element. ```js assert( $('.btn-danger > i').is('.fas.fa-trash') || $('.btn-danger > span').is('.fas.fa-trash') ); ``` Each of your `i` elements should have a closing tag and `` is in your like button element. ```js assert( code.match(/<\/i>|<\/span/g) && code.match(/<\/i|<\/span>/g).length > 2 && ($('.btn-primary > i').is('.fas.fa-thumbs-up') || $('.btn-primary > span').is('.fas.fa-thumbs-up')) ); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

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
``` # --solutions-- ```html

CatPhotoApp

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
```