HTML / CSS / JavaScript
July 2, 2019

Icons(belgilar)

Ikonkalarni qanday qo'shadi

HTML sahifangizga ikon qo'shishning eng oddiy usuli, Font Awesome kabi ikon kutubxonalaridan foydalanish.

Belgilangan icon classning nomini xohlagan HTML elementiga (masalan, <i> yoki <span>) qo'shing.

Quyidagi icon kutubxonalaridagi barcha ikonkalar CSS (hajmi, rangi, soyasi, va hokazo) bilan moslashtirilishi mumkin bo'lgan miqyosli vektorlardir.


Font Awesome ikonlar

Font Awesome belgilaridan foydalanish uchun quyidagi kodni head tegi ichiga qo'yish kifoya:

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">

Eslatma: Yuklash yoki o'rnatish talab etilmaydi.

Bootstrap belgilari

Bootstrap belgilaridan foydalanish uchun quyidagi kodni head tegi ichiga qo'yish kifoya:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">


Google belgilari

Google belgilaridan foydalanish uchun quyidagi kodni head tegi ichiga qo'yish kifoya:

<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">