26 lines
498 B
Markdown
26 lines
498 B
Markdown
|
---
|
||
|
title: Add Font Awesome Icons to our Buttons
|
||
|
---
|
||
|
## Add Font Awesome Icons to our Buttons
|
||
|
|
||
|
The challenge requires you to add a thumbs up icon from font awesome to the button with the text 'Like' in it
|
||
|
|
||
|
### Hint 1
|
||
|
|
||
|
The ``` <i> ``` tag is not self-closing.
|
||
|
|
||
|
### Hint 2
|
||
|
|
||
|
Use the classes ``` fa ``` and ```fa-thumbs-up```.
|
||
|
|
||
|
### Solution
|
||
|
|
||
|
Modify the button tag to the following:
|
||
|
|
||
|
```html
|
||
|
<button class="btn btn-block btn-primary">
|
||
|
<i class="fa fa-thumbs-up"></i>
|
||
|
Like
|
||
|
</button>
|
||
|
```
|