Materiał - Przełącz ikony
W tym rozdziale wyjaśniono użycie ikon przełączania (materiałów) Google. Zakładać, żecustom to nazwa klasy CSS, w której zdefiniowaliśmy rozmiar i kolor, jak pokazano w przykładzie podanym poniżej.
<!DOCTYPE html>
<html>
   <head>
      <link 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">accessibility</i>
   </body>
	
</html>Poniższa tabela zawiera użycie i wyniki ikon przełączania (materiałów) Google. Zastąp tag <body> powyższego programu kodem podanym w tabeli, aby uzyskać odpowiednie wyniki -
| Stosowanie | Wynik | 
|---|---|
| <i class = "material-icons custom"> check_box </i> | check_box | 
| <i class = "material-icons custom"> check_box_outline_blank </i> | check_box_outline_blank | 
| <i class = "material-icons custom"> indeterminate_check_box </i> | indeterminate_check_box | 
| <i class = "material-icons custom"> radio_button_checked </i> | radio_button_checked | 
| <i class = "material-icons custom"> radio_button_unchecked </i> | radio_button_unchecked | 
| <i class = "material-icons custom"> gwiazda </i> | gwiazda | 
| <i class = "material-icons custom"> star_border </i> | star_border | 
| <i class = "material-icons custom"> star_half </i> | star_half |