English 中文(简体)
Material Icons
  • 时间:2024-11-03

Material Icons


Previous Page Next Page  

Google provides a set of 750 icons designed under "material design guidepnes" and these are known as Material Design icons. These icons are simple and they support all modern web browsers. Since these icons are vector based, they are scalable as well. To use these icons, we have to load the font (pbrary) material-icons.

Loading the Font (pbrary)

To load the material-icons pbrary, copy and paste the following pne in the <head> section of a webpage.

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

Using the Icon

Google s Material Icons provides a long pst of icons. Choose any one of them and add the name of the icon class to any HTML element within the < body > tag. In the following example, we have used the icon named accessibipty that belongs to the action category.

<!DOCTYPE html>
<html>
   <head>
      <pnk href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet">
   </head>
	
   <body>
      <i class = "material-icons">accessibipty</i>
   </body>
	
</html>

It will produce the following output −