CSS Icons

ICONS in CSS

ยท

1 min read

Table of contents

In CSS Icons of other libraries can be formatted using CSS styles. They can be customized according to size, color, shadow, etc. The icon is a graphical representation that conveys the specific meaning for which it is used & helps to navigate accordingly.

There are 3 types of icon libraries available, namely

  • Font Awesome Icons

  • Google Icons

  • Bootstrap Icons


Using Icons with CSS

In order to use icons, we need to add the required CDN link inside the <head> section. The following steps to add the predefined class in the HTML:

  • Add the name of the icon class to any inline HTML element.

  • The <i> and <span> elements are widely used to add icons.

  • All the CSS icons are scalable vector icons that can be customized with the required CSS properties such as size, color, shadow, etc.

ย