+ 2

Anybody can tell me how to use <div>tag in html

9th Dec 2017, 2:13 PM
Bandaru Yogesh
Bandaru Yogesh - avatar
5 Réponses
+ 16
<div> tag can be used to define a block level element. What is a block level element? Simply speaking, its something that is not spaced in a single line. Moving on. Now what are the things in html which does not stay in one line? A lot of things if you ask me. like <p> the most simple example. A paragraph can contain many lines. So what you can do here is: <div class="paragraph> <p> random stuff </p> </div> later when you move on to css designing, you can simply use the div class to style it. div will also ensure that no other stuff gets mashed up with your 'div' stuff which simply works as a block.just like building buildings where you put stones one over the other.
9th Dec 2017, 2:22 PM
inactive instagrammer
inactive instagrammer - avatar
+ 3
thanx every one for helping my bestie ...🙂🙂😋👏
15th Dec 2017, 4:07 PM
Prerit Rathi
Prerit Rathi - avatar
+ 2
div is mean division for example when you need to create an idependent section like that <div> <form> <ul> <li>html</li> <li>css</li> <li>javascript</li> </ul> </form> </div>
10th Dec 2017, 12:11 AM
islam ahmed
islam ahmed - avatar
+ 2
you must have to know the display of div is block
10th Dec 2017, 12:12 AM
islam ahmed
islam ahmed - avatar
+ 2
you can ask me any time
10th Dec 2017, 12:13 AM
islam ahmed
islam ahmed - avatar