Icon in CSS
How to add icons
The easiest way to add icons (icons) to HTML pages is to use the icon library. Just like Font Awesome, just add the name of the icon class to any inline HTML element (as well). All the icons in the icon library below are in vector format that can be scaled in CSS (size, color, shadow .)
Font Awesome Icon
To use Font Awesome's icon, add the following line to the section in the HTML page. You do not need to download or install anything.
Example of the icon with Font Awesome
Icon in CSS Picture 1
Images of icons in the example on the browser
Bootstrap Icon
To use Bootstrap's icon, add the following line to the section in the HTML page. This way there is no need to download or install anything.
Example icon with Bootstrap
Icon in CSS Picture 2
Bootstrap is a popular choice to get icons for HTML pages
Google Icon
To use Google Icon, add the following line to the section in the HTML page. As with the above two ways, you do not need to download or install anything.
Example Google Icon
cloud
favorite
attachment
computer
traffic
Icon in CSS Picture 3
Google also has its own icon library for developers
Previous post: Font in CSS
The following article: Path in CSS
You should read it
- Learn about the origin of familiar technology icons
- The meaning behind familiar technology symbols
- Looking Back at Icons in Windows: From Windows 1 to 11
- 16 best free icon sets for UI design
- 7 websites to download free desktop icons for Windows 10
- How to Customize the Size of the Windows 7 Taskbar Icons
- How to use icons in Microsoft Word 2013
- Instructions for using hidden icons on Mac keyboard
- How to hide and unhide all desktop icons on Windows
- Extract icons from files in Windows with Icons From File
- Invite to launch Launcher Live Icons, the app helps the icon know to dance extremely fancy and completely free
- The origin of some familiar icons on the computer