0
Please explain div tag and its uses??
5 odpowiedzi
+ 1
the <div> tag is used to define a section of a code. It is used mostly to give a group of elements a class.
for example:
<div style="color:red">
<h3>This is a heading</h3>
<p>This is a paragraph.</p>
</div>
This code colors everything inside of the <div> tag red.
+ 1
DIV = divider/division
As per what it stands for, it's simply a means of being able to properly divide your document or create different divisions on it. As other said, it's a container that separates it from the things outside of it.
It's useful because it allows us to use other things, such as CSS or JS, to manipulate elements much easier.
0
thanks
0
various attributes of div and their uses