HTML Icons

Go to main Page

Icons in HTML

To add icons in an HTML document we have to use font awesome link in the head of the document.

After adding font awesome link we use <i> and between this tag we use class and the name of an icon.

Font awesome Cdn link

<link rel="stylesheet" href="">

Icons Syntax

        <!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href="">

    <i class="fa fa-heart"></i>
    <i class="fa fa-play"></i>
    <i class="fa fa-cloud"></i>
    <i class="fa fa-bars"></i>
    <i class="fa fa-file"></i>


You can find a lot of icons and set their font size small or large.