This chapter explains the usage of Google's (Material) Toggle 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>
<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>
The following table contains the usage and results of Google's
(Material) Toggle 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">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">star</i> |
star |
<i class="material-icons custom">star_border</i> |
star_border |
<i class="material-icons custom">star_half</i> |
star_half |
No comments:
Post a Comment