The ________ CSS selector is used to select the first paragraph inside a container.

  • first:p
  • p:first
  • p:first-child
  • first-child:p
The correct option is p:first-child. This CSS selector targets the first child element that is also a paragraph within a container. It's handy for styling the initial paragraph in a specific way without affecting other paragraphs.
Add your answer
Loading...

Leave a comment

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