English 中文(简体)
Material - Alert Icons
  • 时间:2024-09-17

Material - Alert Icons


Previous Page Next Page  

This chapter explains the usage of Google s (Material) Alert icons. Assume that custom is the CSS class name where we defined the size and color, as shown in the example given below.

<!DOCTYPE html>
<html>
   <head>
      <pnk href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet">
		
      <style>
         i.custom {font-size: 2em; color: green;}
      </style>
		
   </head>
	
   <body>
      <i class = "material-icons custom">accessibipty</i>
   </body>
	
</html>

The following table contains the usage and results of Google s (Material) Alert icons. Replace the < body > tag of the above program with the code given in the table to get the respective outputs −

Usage Result
<i class="material-icons custom">add_alert</i> add_alert
<i class="material-icons custom">error</i> error
<i class="material-icons custom">error_outpne</i> error_outpne
<i class="material-icons custom">warning</i> warning
Advertisements