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>
<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) 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_outline</i> |
error_outline |
<i class="material-icons custom">warning</i> |
warning |
No comments:
Post a Comment