+ 5
What Is The Use Of Asterisk【*】 Symbol In CSS3 ?
How It Works In Css 3?
4 Respostas
+ 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...
+ 6
Every element inside it
+ 5
It is a universal selector
+ 3
It is use for selecting all the elements