I would like to set the text color to "White" for all the list items. Not sure what the proper CSS code would be.
<span class="helptext">
<ul>
<li>Your password can’t be too similar to your other personal information.</li>
<li>Your password must contain at least 8 characters.</li>
<li>Your password can’t be a commonly used password.</li>
<li>Your password can’t be entirely numeric.</li>
</ul>
</span>
2
Answers
To set the text color to white for all the list items, you can use the following CSS code:
You can look at the lines of code like this
Imagine the li tag is your friend and you want it to come out to play, you’d have to go the house(container) element, talk to the ul tag being the parent element and then finally seeing your friend the li tag being the child element
So to access the li element, you have to enter the house, talk to the parent who will then let you see your friend li
so it’ll be written as;