get it on google playCreated with Sketch.
CSS> Class attribute

Class attribute

If we want to select one or more elements, we can set a class attribute for the exact elements we want to change.

Here, we set the grey-element class.

 <head>
  <link rel="stylesheet" href="style.css">
 </head>
 <body>
  <ol>
   TO DO:
   <li class="grey-element">Floss</li>
   <li>Feed Cat</li>
   <li class="grey-element">Nap</li>
   <li>Plan holiday</li>
   <li class="grey-element">Order tea</li>
  </ol>
 </body>
.grey-element {
 background-color: lightgrey;
}
TRY IT ON THE APP