bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/CSS/CSS Foundations
CSS•CSS Foundations

CSS Icons - Font Awesome

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind CSS Icons - Font Awesome?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

<!___ html>
3Order

Put the learning moves in the order that makes the concept easiest to apply.

Just add the name of the icon class to any inline HTML element (like <i> or <span> ).
Icons can easily be added to your HTML page, by using an icon library.
Font Awesome Icons

How To Add Icons

Icons can easily be added to your HTML page, by using an icon library.

Just add the name of the icon class to any inline HTML element (like <i> or <span> ).

Icons from icon libraries are scalable vectors that can be customized with CSS (size, color, shadow, etc.).

Font Awesome Icons

The code looks something like this

Read more about Font Awesome in our Font Awesome Tutorial .

Note

No downloading or installation is required!

Example

Formatted code
<!DOCTYPE html>
<html>
<head>

  <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>

</head>
<body>
<i class="fas fa-cloud"></i>
<i  class="fas fa-heart"></i>
<i class="fas fa-car"></i>
<i class="fas fa-file"></i>

<i class="fas fa-bars"></i>

</body>
</html>

Live preview

For a complete reference of all Font Awesome icons, visit our Icon Reference .

Previous

CSS Font Property

Next

CSS Icons - Bootstrap