0

Please explain div tag and its uses??

9th Mar 2018, 3:48 PM
vaibhav tiwari
vaibhav tiwari - avatar
5 Respostas
+ 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.
9th Mar 2018, 4:05 PM
Ilai Segev
Ilai Segev - avatar
+ 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.
9th Mar 2018, 4:31 PM
Fata1 Err0r
Fata1 Err0r - avatar
0
thanks
9th Mar 2018, 4:06 PM
vaibhav tiwari
vaibhav tiwari - avatar
0
various attributes of div and their uses
9th Mar 2018, 4:26 PM
vaibhav tiwari
vaibhav tiwari - avatar