Type selectors

To define a rule, use a selector followed by a declaration block. There are different types of css selector which we can apply styles to the html element.

The following example defines a rule for rendering all <h1> element. Here h1 is selector which applies any <h1> in a website.
h1 {
font-size: 20px;
font-style: italic;
color: #000000;
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 # # # # #