Recently, I've started exploring CSS styling and I'm curious if there is a more effective way to change the color of link text when they are within a list. Currently, all my links have the same color and I'd like to enhance this aspect.
<h1>Lab Exercises</h1>
<ol class="orderedlist">
<li><a class="listitem" href="labExercises/ex1">Lab 1</a></li>
<li><a class="listitem" href="labExercises/ex2">Lab 2</a></li>
<li><a class="listitem" href="labExercises/ex3">Lab 3</a></li>
<li><a class="listitem" href="labExercises/ex4">Lab 4</a></li>
<li><a class="listitem" href="labExercises/ex5">Lab 5</a></li>
<li><a class="listitem" href="labExercises/ex6">Lab 6</a></li>
<li><a class="listitem" href="labExercises/ex7">Lab 7</a></li>
<li><a class="listitem" href="labExercises/ex8">Lab 8</a></li>
</ol>
CSS
.listitem { color: orchid}
.orderedlist { color: fuchsia }