Wat zijn CSS-pictogrammen?




Pictogrammen worden geleverd in schaalbare vectorbibliotheken die kunnen worden aangepast met CSS

Veelvoorkomende bibliotheken zijn:

  • Lettertype Awesome-pictogrammen
  • Bootstrap-pictogrammen
  • Google-pictogrammen


Hoe?

Om pictogrammen te gebruiken, voegt u gewoon een link toe aan de pictogrammenbibliotheek in het <head>gedeelte van uw HTML-pagina:

Geen downloads of installaties vereist!

Om een ​​pictogram in te voegen, voegt u de naam van de pictogramklasse toe aan een willekeurig inline HTML-element zoals <i>of <span>.

Lettertype Geweldig voorbeeld

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>

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

</body>
</html>


Bootstrap-voorbeeld

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>

<i class="glyphicon glyphicon-cloud"></i>
<i class="glyphicon glyphicon-remove"></i>
<i class="glyphicon glyphicon-user"></i>
<i class="glyphicon glyphicon-envelope"></i>
<i class="glyphicon glyphicon-thumbs-up"></i>

</body>
</html>

Google Voorbeeld

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

<i class="material-icons">cloud</i>
<i class="material-icons">favorite</i>
<i class="material-icons">attachment</i>
<i class="material-icons">computer</i>
<i class="material-icons">traffic</i>

</body>
</html>

Volledige zelfstudie over pictogrammen

Dit is een korte beschrijving van Icons.

Ga voor een volledige Icons-tutorial naar W3Schools Icons Tutorial .

Ga voor een volledige Icons Reference naar W3Schools Icons Reference .