0

What is the use of <div> tag

13th Jul 2017, 1:57 AM
Garima Saraswat
Garima Saraswat - avatar
2 Réponses
+ 1
it allows you to section off a part of your code without having any base modifications to it. 99% of the time, you use a div and apply css to it. for example, if you want to add a pretty border to a bunch of paragraphs, or hide that section until later. it differs from span because span is usually for in line things. so if you wanted to make a certain word have a larger font size, you could use span inside the paragraph, and apply the font size adjustment to that span.
13th Jul 2017, 2:44 AM
Andrew Lampert
Andrew Lampert - avatar
- 2
u use it so u can live a live live on poobhub
14th Jul 2017, 9:44 AM
Jeff