How can you target an ordered list and its list items in a single CSS selector?

  • ol + li { ... }
  • ol / li { ... }
  • ol li { ... }
  • ol, li { ... }
To target both an ordered list (ol) and its list items (li) in a single CSS selector, you should use "ol li" without any comma or additional characters. This selector will apply styles to all li elements within an ol element.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *