Font Awesome Warning (Error, Danger, Alert)

Font Awesome offers a variety of alert icons, including the warning icon represented by an exclamation mark inside a triangle. It can be used to indicate potential errors, dangers, or cautions. Here, we discuss how to use the Font Awesome warning icon in your HTML and CSS code, along with customization options for its size, color, and position.Font Awesome Warning Icon also symbolize as :Danger, Alert, Disclaimer, Caution.

Fontawesome Version 4.X

warning

<i class='fa fa-warning'></i>

warning

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

warning

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

warning

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

warning

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

How to Add Font Awesome Disclaimer Icon in HTML Code?

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

HTML Code

Get complete html code for icon warning

                    
                    <!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-warning'></i>
                        </body>
                    </html>                    

Tags

cautioning,fa fa error,Danger,Alert,Failed,Disclaimer,Notice,Caution,Wrong,Incident,Attention,Report,Alarm

Change Font Awesome Icon Warning 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-warning blue-color'></i> <i class='fa fa-warning green-color'></i> <i class='fa fa-warning teal-color'></i> <i class='fa fa-warning yellow-color'></i> <i class='fa fa-warning 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
 

Warning Icon Font Awesome - FAQs

⭐What is the Font Awesome Warning Icon code?

Icon Code is - fa fa-warning.

⭐ What does the fa fa-warning Icon mean?

fa fa-warning is the Icon code of Font Awesome Warning.

⭐ Can we add fa fa-warning Icon in different sizes?

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

⭐ How to add a Blue color Font Awesome Warning Icon?

Add the blue color Warning icon of the font awesome by using code: fa fa-warning style='color: blue;'.

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

To change the Warning icon to white color use code: fa fa-warning style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?