Font Awesome Car (Vehicle, Transportation)

In this tutorial, we will learn how to use the Font Awesome Car icon, also known as 'fa-car', This icon represents a car or vehicle. We will demonstrate how to edit its color size in 'Try editor.

Fontawesome Version 4.X

car

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

car

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

car

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

car

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

car

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


Fontawesome Version 5.X

car

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

car

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

car

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

car

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

car

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

Fontawesome Version 6.X

car

Web

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

React

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

Vue

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

car

Web

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

React

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

Vue

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

car

Web

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

React

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

Vue

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

car

Web

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

React

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

Vue

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

car

Web

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

React

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

Vue

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

How to add Font Awesome car Icon ?

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

HTML Code

Get complete html code for icon car

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

Tags

automobile,automotive,auto,drive,driving,vehicle,Transportation,driver

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

Advertisements



Advertisements



Looking For More Icons?