Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
There are Three type of selectors 1. class sectors- class is made with the required styling. whenever the respective class is called styling gets implement in that called para or tag. . defines it is class selector. eg: In css file or style tag in header .classselector{ color:#fff; } In html page <p class="classselector"> <\p> 2. Id sectors- id is made with the required styling. whenever the respective id is called styling gets implement in that called para or tag. # defines it is ID sector in style. eg: In css file or style tag in header #idselector{ color:#fff; } In html page <p id="idselector"> <\p> 3.Element sectors- inbuilt tags css is defined made with the required styling. whenever the respective tag is called styling gets implement in that called para or tag. tags name followed by Curly braces . eg: In css file or style tag in header p{ color:#fff; } * is used to implement styling in all tags of page. this tag gets implement on its own no need for call. *{ } In html page <p> <\p>
30th Oct 2016, 7:24 AM
Vipra Chudasama
Vipra Chudasama - avatar