What does the CSS rule "ul > li" specifically target?

  • All li elements within a ul element.
  • All li elements within an ul class.
  • All ul and li elements.
  • Only the direct child li elements of a ul element.
The CSS rule "ul > li" specifically targets only the direct child li elements of a ul element. It will not target li elements that are nested further within the hierarchy of the HTML structure.
Add your answer
Loading...

Leave a comment

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