Font Awesome Xmark (Remove, Delete, Close) - Version 6

The Font Awesome xmark icon is a simple symbol that represents a cross, a cancel, or a close action. The xmark icon can be used in various contexts, such as buttons, alerts, modals, menus, and more. To use the xmark icon, we need to add a class name to the i tag, such as 'fa-solid fa-xmark'.

Fontawesome Version 6.X

xmark

Web

<i class='fa-solid fa-xmark'></i>

React

<FontAwesomeIcon icon="fa-solid fa-xmark" />

Vue

<font-awesome-icon icon="fa-solid fa-xmark" />

xmark

Web

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

React

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

Vue

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

xmark

Web

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

React

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

Vue

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

xmark

Web

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

React

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

Vue

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

xmark

Web

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

React

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

Vue

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

How to add Font Awesome xmark Icon ?

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

HTML Code

Get complete html code for icon xmark

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

Tags

multiply ,close,remove,delete,reset,clear,Exist,Warning,Sign

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

Xmark Icon Font Awesome - FAQs

⭐What is the Font Awesome Xmark Icon code?

Icon Code is - fa-solid fa-xmark.

⭐ What does the fa-solid fa-xmark Icon mean?

fa-solid fa-xmark is the Icon code of Font Awesome Xmark.

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

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

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

Add the blue color Xmark icon of the font awesome by using code: fa-solid fa-xmark style='color: blue;'.

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

To change the Xmark icon to white color use code: fa-solid fa-xmark style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?