Can anyone tell me what's the use of <div> in Html ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anyone tell me what's the use of <div> in Html ?

I'm not able to understand what's the use of <div> in html language. If anyone can help me it will be really helpful. Thank you 😊

3rd Jul 2019, 8:53 AM
Varnit Sharma
Varnit Sharma - avatar
2 Answers
+ 1
<div> defines division, it's default value for display property is block. It's a non-semantic tag along with <span>, but <span> display value is inline.
3rd Jul 2019, 9:10 AM
yuulye
yuulye - avatar
0
Thank you yuulye 😊
3rd Jul 2019, 9:18 AM
Varnit Sharma
Varnit Sharma - avatar