What is div | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is div

Can any one tell what's div. When it used. I can't understand.

7th Jan 2017, 12:49 PM
Nithin Sukumar
Nithin Sukumar - avatar
4 Answers
+ 13
A <div> tag is nothing more than a container unit that encapsulates other page elements and divides an HTML document into several sections.
7th Jan 2017, 6:20 PM
Joseph Sai
Joseph Sai - avatar
+ 5
div is a html tag . it's use to draw with css
7th Jan 2017, 5:31 PM
Nasim
Nasim - avatar
+ 4
It's an Html element... means that if you've asked in javascript context, without knowing html ( because you only tag you question with 'data-types' ^^ ), and want to use it, you need to learn it to use it, at least a minimal introduction to concepts to understand it ;)
7th Jan 2017, 1:06 PM
visph
visph - avatar
+ 3
it's a division tag, it's used to make block level elements
7th Jan 2017, 12:54 PM
Kamil
Kamil - avatar