Font Awesome Trash Can Icon (Bin, Remove, Empty, Garbage)

In this tutorial, we will learn how to use the Font Awesome Trash Can icon, also known as Trash bins, removal, and empty, Garbage. This icon can be accessed by the class name as fa-solid fa-trash-can for Version 6 and fa-regular fa-trash-can. It represents the act of discarding unwanted items, clearing items.

Fontawesome Version 6.X

trash can

Web

<i class='fa-solid fa-trash-can'></i>

React

<FontAwesomeIcon icon="fa-solid fa-trash-can" />

Vue

<font-awesome-icon icon="fa-solid fa-trash-can" />

trash can

Web

<i class='fa-solid fa-trash-can' style='color: white'></i>

React

<FontAwesomeIcon icon="fa-solid fa-trash-can" style={{color: 'white'}} />

Vue

<font-awesome-icon icon="fa-solid fa-trash-can" :style="{color: 'white'}" />

trash can

Web

<i class='fa-solid fa-trash-can' style='color: red'></i>

React

<FontAwesomeIcon icon="fa-solid fa-trash-can" style={{color: 'red'}} />

Vue

<font-awesome-icon icon="fa-solid fa-trash-can" :style="{color: 'red'}" />

trash can

Web

<i class='fa-solid fa-trash-can' style='color: blue'></i>

React

<FontAwesomeIcon icon="fa-solid fa-trash-can" style={{color: 'blue'}} />

Vue

<font-awesome-icon icon="fa-solid fa-trash-can" :style="{color: 'blue'}" />

trash can

Web

<i class='fa-solid fa-trash-can' style='color: #f3da35'></i>

React

<FontAwesomeIcon icon="fa-solid fa-trash-can" style={{color: '#f3da35'}} />

Vue

<font-awesome-icon icon="fa-solid fa-trash-can" :style="{color: '#f3da35'}" />
Try it Yourself

FA Regular trash can Version 6.X

px Enter Size
Color Code
HTML
<i class="fa-regular fa-trash-can"></i>

How to add Font Awesome trash can Icon ?

Font Awesome Icon fa solid fa trash can Icon can be added to any web page simply as below. You can integrate Icon in web pages by just adding following below syntax & icon code.

Icon -
<i class='fa-solid fa-trash-can'></i>
Icon Code -
fa-solid fa-trash-can

HTML Code

Get complete html code for icon trash can

                    
                    <!DOCTYPE html>
                    <html>
                        <head>
                        <title>Page Title</title>
                        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"  crossorigin="anonymous" referrerpolicy="no-referrer" />
                       </head>
                        <body>
                        <i class='fa-solid fa-trash-can'></i>
                        </body>
                    </html>                    

Tags

trash bin,rubbish,empty,clean up,remove,discard

Change Font Awesome Icon Trash can Color

Sometimes we need icons in different color, as we suggested by adding css style we can change color. Here we have created one example to change color of icons with css classes.


    <style>
.blue-color {
color:blue;
}
.green-color {
color:green;
}
.teal-color {
color:teal;
}
.yellow-color {
color:yellow;
}
.red-color {
color:red;
}
</style>
<i class='fa-solid fa-trash-can blue-color'></i> <i class='fa-solid fa-trash-can green-color'></i> <i class='fa-solid fa-trash-can teal-color'></i> <i class='fa-solid fa-trash-can yellow-color'></i> <i class='fa-solid fa-trash-can red-color'></i>

Output of the above example will be as below-


Note- Make Sure You have included the below Font Awesome file in header-
            
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"  crossorigin="anonymous" referrerpolicy="no-referrer" />            
            
Related Icons

Trash Can Icon Font Awesome - FAQs

⭐What is the Font Awesome Trash Can Icon code?

Icon Code is - fa-solid fa-trash-can.

⭐ What does the fa-solid fa-trash-can Icon mean?

fa-solid fa-trash-can is the Icon code of Font Awesome Trash Can.

⭐ Can we add fa-solid fa-trash-can Icon in different sizes?

Yes, you can Icon of fa-solid fa-trash-can in various pixels.

⭐ How to add a Blue color Font Awesome Trash Can Icon?

Add the blue color Trash Can icon of the font awesome by using code: fa-solid fa-trash-can style='color: blue;'.

⭐ How to make white color icon of a Font Awesome Trash Can?

To change the Trash Can icon to white color use code: fa-solid fa-trash-can style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?