How To Add Icons (2024)

You can place Font Awesome icons just about anywhere, and we’ve tried to make it so that icons will take on the characteristics and blend in with surrounding text naturally.

We’ll cover the basics of how to add icons to your project, shorthand class names for different icon styles, how to add icons to HTML, using icons aliases, and more!

Basics

To add an icon, you need to know a few bits of information:

  1. The shorthand class name for the style you want to use
  2. The icon name, prefixed with fa- (meaning “Font Awesome” naturally!)
  3. The shorthand class name for the family you want to use (Optional)

Families + Styles

There are four families of Font Awesome icons - each with a unique look, class name, and @font-face font-family. In Font Awesome Classic and Sharp, there are four styles of Font Awesome icons. Here are some examples:

Classic Family

StyleAvailabilityStyle classfont-weightLooks like
SolidFree Planfa-solid900
RegularPro onlyfa-regular400
LightPro onlyfa-light300
ThinPro onlyfa-thin100

Duotone Family

StyleAvailabilityStyle classfont-weightLooks like
SolidPro onlyfa-duotone900
RegularComing Soon!
LightComing Soon!
ThinComing Soon!

Sharp Family

StyleAvailabilityStyle classfont-weightLooks like
SolidPro onlyfa-sharp fa-solid900
RegularPro onlyfa-sharp fa-regular400
LightPro onlyfa-sharp fa-light300
ThinPro onlyfa-sharp fa-thin100

Sharp Duotone Family

StyleAvailabilityStyle classfont-weightLooks like
SolidPro onlyfa-sharp-duotone fa-solid900
RegularComing Soon!
LightComing Soon!
ThinComing Soon!

Brands Family

StyleAvailabilityStyle classfont-weightLooks like
BrandsFree Planfa-brands400

Add Icons to HTML

We designed Font Awesome for use with inline elements, and we recommend that you stick with a consistent element in your project. We recommend using <i> element with the Font Awesome CSS classes for the style class for the style of icon you want to use and the icon name class with the fa- prefix for the icon you want to use. Accessibility-minded folks may want to opt for the <span> element instead of <i>.

Here’s an example:

<!-- This example uses <i> element with:

1. the `fa-solid` style class for solid style

2. the `user` icon with the `fa-` prefix -->

<i class="fa-solid fa-user"></i>

<span class="fa-solid fa-user"></span>

Setting Different Families + Styles

And here’s an example that references different styles and families of icons:

<!-- Classic family icons in available styles (Font Awesome Classic is the default) -->

<i class="fa-solid fa-user"></i>

<i class="fa-regular fa-user"></i>

<i class="fa-light fa-user"></i>

<i class="fa-thin fa-user"></i>

<!-- You can also explicitly state the classic family like this -->

<i class="fa-classic fa-regular fa-user"></i>

<!-- Font Awesome Duotone family icon -->

<i class="fa-duotone fa-solid fa-user"></i>

<!-- Font Awesome Sharp family icons in available styles -->

<i class="fa-sharp fa-solid fa-user"></i>

<i class="fa-sharp fa-regular fa-user"></i>

<i class="fa-sharp fa-light fa-user"></i>

<i class="fa-sharp fa-thin fa-user"></i>

<!-- Font Awesome Sharp Duotone family icon -->

<i class="fa-sharp-duotone fa-solid fa-user"></i>

<!-- a Brands icon -->

<i class="fa-brands fa-font-awesome"></i>

Aliases

We’ve updated many of our icon names in Version 6 to make them more universal and consistent. But we wanted to make sure not to break your existing code, so we made aliases for renamed icons to allow them to work with either the old or new names.

And you can use the old or new name for styles as well. So you can still use fas, far, fal, fad, and fab. And we’ve also included older prefix versions for our new Thin style (fat) and new Sharp family of styles (Sharp Solid is fass while Sharp Regular is fasr).

<!-- All of these code snippets will render the same Solid icon thanks to aliases. -->

<i class="fa-solid fa-cutlery"></i>

<i class="fa-solid fa-utensils"></i>

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

<!-- All of these code snippets will render the same Sharp Solid icon thanks to aliases. -->

<i class="fa-sharp fa-solid fa-times"></i>

<i class="fa-sharp fa-solid fa-close"></i>

<i class="fass fa-xmark"></i>

Alternate Ways to Add Icons

We also have many other ways to add Font Awesome icons, in case your situation calls for something specific:

When using Web Fonts

When using SVGs

How To Add Icons (2024)

FAQs

How do you open a program when there are no icons on the desktop answer? ›

To open a program when there are no icons on the desktop, you can follow these steps:
  1. Click the Start button located on the taskbar.
  2. In the Start menu, scroll through the list of programs or search for the program name using the search bar.
  3. Click on the program name to open it.
Oct 22, 2023

How can you arrange icons on the desktop answer? ›

To arrange icons by name, type, date, or size, right-click a blank area on the desktop, and then click Arrange Icons. Click the command that indicates how you want to arrange the icons (by Name, by Type, and so on).

Why can't I find icons in Word? ›

Select Insert > Icons. Don't see this feature? Icons are only available to Microsoft 365 subscribers on Windows, Android, or Windows Mobile. Select the icon you want, and then select Insert.

How do I increase icons? ›

To resize desktop icons

Right-click (or press and hold) the desktop, point to View, and then select Large icons, Medium icons, or Small icons. Tip: You can also use the scroll wheel on your mouse to resize desktop icons. On the desktop, press and hold Ctrl while you scroll the wheel to make icons larger or smaller.

How do I get more icons on my Home Screen? ›

Add to Home screens
  1. From the bottom of your Home screen, swipe up. Learn how to open apps.
  2. Touch and drag the app. You'll find images of each Home screen.
  3. Slide the app to where you want it. Lift your finger.

How do I add icons on my desktop? ›

Select the Start button, and then select Settings > Personalization > Themes. Under Themes > Related Settings, select Desktop icon settings. Choose the icons you would like to have on your desktop, then select Apply and OK. Note: If you are in tablet mode, you may not be able to see your desktop icons properly.

Why won't my icons stay where I put them? ›

Right-click the Desktop, select View. Make sure Auto arrange icons is unchecked. Make sure Align icons to grid is unchecked as well. Reboot and see if the issue is resolved.

How to customize desktop icons? ›

To customize or change icons for Windows 10 and Windows 11:
  1. Right-click on the application icon on either the taskbar or desktop.
  2. If using an application on the desktop, left-click to select the option for Properties from the drop-down menu. ...
  3. Under the Shortcut menu, select the button that says Change Icon…

How do I get more icons in Word? ›

Insert icons in Microsoft Word
  1. Select Insert > Icons. ...
  2. Select as many icons as you want, and then choose Insert at the lower right.
  3. Select the icon then you can rotate, color, and resize them by using the options on the Graphic Format tab.

Why are icons not showing up? ›

Graphics driver issues: Outdated or missing graphics drivers can cause icons to disappear or display incorrectly. Corrupted icon cache: The icon cache can become corrupted, leading to icons appearing distorted or not at all.

Why my desktop icons are not showing? ›

Step 1: Right-click on your desktop. Then, select View. Step 2: Ensure Show desktop icons is ticked. Note: If it isn't, click on it once to ensure it isn't causing issues displaying your desktop icons.

How do I get more icons on my iPhone? ›

How to change your app icons on your iPhone
  1. Open the Shortcuts app on your iPhone (it's already preinstalled).
  2. Tap the plus icon in the top right corner.
  3. Select Add Action.
  4. In the search bar, type Open app and select the Open App action.
  5. Next, tap App and select the app you want to customize.
Jul 1, 2024

Top Articles
MLN6775421 – Medicare Wellness Visits
The Five Buckets of Life
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
Non Sequitur
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 6060

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.