IT Questions and Answers :)

Tuesday, April 23, 2019

In CSS, which one of these symbols is the child selector?

In CSS, which one of these symbols is the child selector?

  • -
  • +
  • >
In CSS, which one of these symbols is the child selector?

EXPLANATION

The greater-than symbol ">" is the child selector in CSS and is written between two elements, the first element being the parent and the second element being the child. From the W3Schools website,
"The child selector selects all elements that are the immediate children of a specified element."

SOURCE

https://www.w3schools.com/css/css_combinators.asp

Share:

0 comments:

Post a Comment

Popular Posts