5 Star Rating System The parent element and child element would be styled with a background image of the 5 stars. The styling is predetermined by the CSS by the following classes: .star1, .star2, .star3, .star4 and .star5.