What Is The Use Of Asterisk【*】 Symbol In CSS3 ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What Is The Use Of Asterisk【*】 Symbol In CSS3 ?

How It Works In Css 3?

22nd Jan 2019, 8:55 AM
Aditya - avatar
4 Answers
+ 6
The Asterisk sign is a wildcard symbol which simply means everything, whenever you use asterisk in css every element are to follow to styling, if you want your page to have same font, style, color then you can use asterisks and define the styling. But typically asterisks is to be uses with caution because it is really powerful, it is one node ahead of the html element itself or we can say it is the parent element to the html element which is the root element. Asterisk typically is used to reset padding and margin of a page * { Padding: 0; Margin: 0; } This is typically what most people do with it. Some consider it good practice to stay away from it while some use it carefully. Again the asterisk symbols apply the style within it to all elements on the webpage. I hope this helps...
22nd Jan 2019, 9:08 AM
africana - avatar
+ 6
Every element inside it
22nd Jan 2019, 9:46 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
It is a universal selector
23rd Jan 2019, 12:57 PM
AKS - avatar
+ 3
It is use for selecting all the elements
23rd Jan 2019, 9:14 AM
M Maaz Azhar
M Maaz Azhar - avatar