Font Awesome Credit Card Icon (Debit, Payment, Transaction)

In this tutorial we will learn how to use Font Awesome Credit Card Icon That is used for Debit, Payment, Transaction. It allows customers to borrow money a pre-approved credit limit. This icon also known as “fa-Credit Card. You can also change the credit card icon's color, font size, style, and animation in using 'Try it' editor

Fontawesome Version 4.X

credit card

<i class='fa fa-credit-card'></i>

credit card

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

credit card

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

credit card

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

credit card

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


Fontawesome Version 5.X

credit card

<i class='fas fa-credit-card'></i>

credit card

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

credit card

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

credit card

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

credit card

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

Fontawesome Version 6.X

credit card

Web

<i class='fa-solid fa-credit-card'></i>

React

<FontAwesomeIcon icon="fa-solid fa-credit-card" />

Vue

<font-awesome-icon icon="fa-solid fa-credit-card" />

credit card

Web

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

React

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

Vue

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

credit card

Web

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

React

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

Vue

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

credit card

Web

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

React

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

Vue

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

credit card

Web

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

React

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

Vue

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

FA Regular credit card Version 6.X

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

How to add Font Awesome credit card Icon ?

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

HTML Code

Get complete html code for icon credit card

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

Tags

debit,card,payment,Transaction,Balance,Swipe

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

Credit Card Icon Font Awesome - FAQs

⭐What is the Font Awesome Credit Card Icon code?

Icon Code is - fa fa-credit-card.

⭐ What does the fa fa-credit-card Icon mean?

fa fa-credit-card is the Icon code of Font Awesome Credit Card.

⭐ Can we add fa fa-credit-card Icon in different sizes?

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

⭐ How to add a Blue color Font Awesome Credit Card Icon?

Add the blue color Credit Card icon of the font awesome by using code: fa fa-credit-card style='color: blue;'.

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

To change the Credit Card icon to white color use code: fa fa-credit-card style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?