<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
.star {
background-color: black;
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
display: inline-block;
height: 50px;
width: 50px;
}
#active {
background-color: yellow;
}
</style>
</head>
<body>
<h2> Star Rating </h2>
<div class="star" id="active"> </div>
<div class="star" id="active"> </div>
<div class="star"> </div>
<div class="star"> </div>
<div class="star"> </div>
</body>
</html>