+ 27

How to use icons in HTML code?

How to use icons in code from existing sources in HTML?

2nd Aug 2019, 11:58 AM
Spl
Spl - avatar
9 Antworten
+ 12
Now I got it, how to use icons from font-awesome, I used in my login form code, anybody can check it.. https://code.sololearn.com/Wipknmkomh1o/?ref=app
6th Aug 2019, 7:54 AM
Spl
Spl - avatar
+ 12
Shikha it's imported in css
21st Aug 2019, 3:37 PM
Spl
Spl - avatar
+ 11
No, Thống Nguyễn in my html code I want to use icons from font-awesome, I tried but it's not working.. So I want to know how to use from there or any other sources
2nd Aug 2019, 12:18 PM
Spl
Spl - avatar
+ 10
2nd Aug 2019, 12:50 PM
Spl
Spl - avatar
+ 6
Icons are added via css you make a sprite, add through a pseudo-class and place it.
2nd Aug 2019, 12:11 PM
Anna/Аня
Anna/Аня - avatar
+ 3
Spl post the code in which you are trying to use fontawesome icons
2nd Aug 2019, 12:29 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 2
Oh, that is simple. First, you need to know wich version you want to use (the icon class name is different on other versions). Then embed the right version on your html code (there are several way to do that) you can search for awesome font install and read the instruction. For now i prefer you to try my favorite version by adding this code inside your head section of your code: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> this is version 4.7, then just find the class name of the icon you want, and insert this code in where you want to use in your code: <i class="fa fa-car"></i> ("fa fa-car" is the class name of the icon).
2nd Aug 2019, 12:29 PM
Thống Nguyễn
Thống Nguyễn - avatar
+ 1
I don't actually understand your mind. You want to use icons witch you like from other HTLM in your code. Am i right?
2nd Aug 2019, 12:13 PM
Thống Nguyễn
Thống Nguyễn - avatar
+ 1
By the way, this is the best awesome font i found, just take a look: https://www.w3schools.com/icons/fontawesome_icons_intro.asp
2nd Aug 2019, 12:35 PM
Thống Nguyễn
Thống Nguyễn - avatar