0
What is the use of <div> tag
2 ответов
+ 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.
- 2
u use it so u can live a live live on poobhub