The following code shows how to star icon.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
href="https://netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome.css">
<style type='text/css'>
.class:after {<!--from w w w. ja va 2 s . com-->
content: "\f005\f005\f005"; /* 3 Stars */
font-family: FontAwesome;
}
</style>
</head>
<body>
<span class="class"></span>
</body>
</html>