Font Awesome Square

Font Awesome Square Icon refers to a shape that has four straight sides of equal length and four 90-degree angles (right angles). This font awesome icon is also known as "fa-Square" or "fa fa Square".

Fontawesome Version 4.X

square

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

square

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

square

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

square

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

square

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


Fontawesome Version 5.X

square

<i class='fas fa-square'></i>

square

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

square

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

square

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

square

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

Fontawesome Version 6.X

square

Web

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

React

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

Vue

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

square

Web

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

React

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

Vue

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

square

Web

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

React

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

Vue

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

square

Web

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

React

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

Vue

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

square

Web

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

React

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

Vue

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

FA Regular square Version 6.X

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

How to add Font Awesome square Icon ?

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

HTML Code

Get complete html code for icon square

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

Tags

shape,rectangle

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

Square Icon Font Awesome - FAQs

⭐What is the Font Awesome Square Icon code?

Icon Code is - fa fa-square.

⭐ What does the fa fa-square Icon mean?

fa fa-square is the Icon code of Font Awesome Square.

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

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

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

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

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

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

Advertisements



Advertisements



Looking For More Icons?