Font Awesome Exclamation Triangle (Warning, Error, Danger)

The Font Awesome Exclamation triangle is often used to indicate a warning, error, or danger. The exclamation triangle icon has a yellow background and a black outline, and it can be customized with different sizes, colors, and animations. The exclamation triangle icon can help web designers draw attention to important messages or alerts on their websites, and this can be implemented in HTML using the code 'fa fa-exclamation-triangle' for version 4 and 'fas fa-exclamation-triangle' for version 5

Fontawesome Version 4.X

exclamation triangle

<i class='fa fa-exclamation-triangle'></i>

exclamation triangle

<i class='fa fa-exclamation-triangle' style='color: white'></i>

exclamation triangle

<i class='fa fa-exclamation-triangle' style='color: red'></i>

exclamation triangle

<i class='fa fa-exclamation-triangle' style='color: blue'></i>

exclamation triangle

<i class='fa fa-exclamation-triangle' style='color: #f3da35'></i>
Try it Yourself


Fontawesome Version 5.X

exclamation triangle

<i class='fas fa-exclamation-triangle'></i>

exclamation triangle

<i class='fas fa-exclamation-triangle' style='color: white'></i>

exclamation triangle

<i class='fas fa-exclamation-triangle' style='color: red'></i>

exclamation triangle

<i class='fas fa-exclamation-triangle' style='color: blue'></i>

exclamation triangle

<i class='fas fa-exclamation-triangle' style='color: #f3da35'></i>
Try it Yourself

How to add Font Awesome exclamation triangle Icon ?

Font Awesome Icon fa fa exclamation triangle 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 fa-exclamation-triangle'></i>
Icon Code -
fa fa-exclamation-triangle

HTML Code

Get complete html code for icon exclamation triangle

                    
                    <!DOCTYPE html>
                    <html>
                        <head>
                        <title>Page Title</title>
                        <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'>
                       </head>
                        <body>
                        <i class='fa fa-exclamation-triangle'></i>
                        </body>
                    </html>                    

Tags

warning,error,danger,Alerts,crashes,threats,security,important notice,announcement,system failure,caution,problem

Change Font Awesome Icon Exclamation triangle 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 fa-exclamation-triangle blue-color'></i> <i class='fa fa-exclamation-triangle green-color'></i> <i class='fa fa-exclamation-triangle teal-color'></i> <i class='fa fa-exclamation-triangle yellow-color'></i> <i class='fa fa-exclamation-triangle 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/4.7.0/css/font-awesome.min.css'>            
            
Related Icons

Exclamation Triangle Icon Font Awesome - FAQs

⭐What is the Font Awesome Exclamation Triangle Icon code?

Icon Code is - fa fa-exclamation-triangle.

⭐ What does the fa fa-exclamation-triangle Icon mean?

fa fa-exclamation-triangle is the Icon code of Font Awesome Exclamation Triangle.

⭐ Can we add fa fa-exclamation-triangle Icon in different sizes?

Yes, you can Icon of fa fa-exclamation-triangle in various pixels.

⭐ How to add a Blue color Font Awesome Exclamation Triangle Icon?

Add the blue color Exclamation Triangle icon of the font awesome by using code: fa fa-exclamation-triangle style='color: blue;'.

⭐ How to make white color icon of a Font Awesome Exclamation Triangle?

To change the Exclamation Triangle icon to white color use code: fa fa-exclamation-triangle style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?