Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<style>
body {
text-align: center;
}
span {
display: inline-block;
padding: 10px 20px;
}
.icon-green {
color: green;
}
.icon-red {
color: red;
}
.icon-large {
font-size: 25px;
}
</style>
</head>
<body>
<h1>Example</h1>
<span class="glyphicon glyphicon-heart icon-green"></span>
<span class="glyphicon glyphicon-star icon-large"></span>
<span class="glyphicon glyphicon-th icon-red"></span>
</body>
</html>