> * , greater than sign and asterisk sign in css | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

> * , greater than sign and asterisk sign in css

what do > and * do in css? for example : .wrapper >* { } //wrapper is name of the class

7th Feb 2022, 1:39 PM
shokin touch
1 Answer
+ 3
There are combinator selectors in CSS, that is something that explains the relationship between the selectors. > is a child selector. For example: div > p Selects all <p> elements where the parent is a <div> element. The universal selector (*) selects all HTML elements on the page. .wrapper >* means all the elements where the parent is the element with a class (.wrapper)
7th Feb 2022, 1:48 PM
Vladimir {Tomsk}
Vladimir  {Tomsk} - avatar