Why we use div <div class="section"> ?? And if i remove it then no change occurs in output?? | Sololearn: Learn to code for FREE!

0

Why we use div <div class="section"> ?? And if i remove it then no change occurs in output??

7/8/2019 2:59:15 PM

THE CRAZY ONE ✌️

4 Answers

New Answer

+1

because "class=section" is how you named specific <div>, when you do that, you go to CSS, type in .section and that way you are telling CSS which <div> are you customizing in this case its div named ".section". so basically it doesent affect your html, its just a connection between html and css, so css know which div are you customizing

0

Thanks a lot .. I am waiting for that type of solution

0

hritik just finish your html and css course and you will figure it out

0