+ 2
Anybody can tell me how to use <div>tag in html
5 Respuestas
+ 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.
+ 3
thanx every one for helping my bestie ...🙂🙂😋👏
+ 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>
+ 2
you must have to know the display of div is block
+ 2
you can ask me any time