CSS Selectors - Universal and Type

CSS- Cascading style sheet

It is one of the powerful language used to style our HTML page. There are various types of selectors in CSS, using those we can elevate our website as we like.

Universal selector: If you are a monochrome lover then you could use Universal selector instead of choosing each element. It is literally everything it selects every single element. For example if you want your html page background color to be red. You could simply do that by using below syntax.

universal selector-syntax.PNG

Universal selector-1.PNG

Type Selector: Type selector is used for selecting a type which is like div, h1, span we can select individual element based on the type. Below is the syntax and examples of Type selector Type Selector.PNG

Type Selector-1.PNG Here we could see the difference I wanted to have color blue for div tag and It selected all the div elements with color blue same works for li elements.