Use of <div>.... </div> tag??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Use of <div>.... </div> tag???

22nd Nov 2021, 6:37 AM
Meet
Meet - avatar
7 Answers
+ 3
It is widely used To make different sections on the document. But in HTML5 we use <section> instead of <div> tag. Although you can use div tag to separate section content as well. Maybe I answered your question. :)
23rd Nov 2021, 3:15 PM
Nabin Bhatt
Nabin Bhatt - avatar
+ 2
Well, you should do the HTML course!
22nd Nov 2021, 10:26 AM
NEZ
NEZ - avatar
+ 1
A block level tag that can be used to create updatable panels. eg) AJAX
22nd Nov 2021, 3:25 PM
Sanjay Kamath
Sanjay Kamath - avatar
+ 1
I think that was clear enough Dev Shivnandan Mishra
23rd Nov 2021, 10:41 AM
Nathnael Tekabe
Nathnael Tekabe - avatar
+ 1
Haha.. I was once in that same spot 😂 my friend, just think of them as a way of grouping similar code
23rd Nov 2021, 12:54 PM
McQuei
McQuei - avatar
0
div is mostly used for the container for other elements. for example if you wanna apply any styling in multiple elements at once you can wrap them inside the div tag. <div> <h1> Hi </h1> <p>This is a demo</p> </div>
22nd Nov 2021, 6:45 AM
zexu knub
zexu knub - avatar
0
When a asker asks a question by not learning from the course or searching it in QA search bar, and when someone answers him/her very politely they not actually answer him/her, they promote them to do that again and again.
23rd Nov 2021, 4:42 PM
JOKER
JOKER - avatar