+ 4
Guys help me... Why do we use <div> tag in html..
5 ответов
+ 6
div can contain text.It is also used as parent to group elements. While coding, you will feel its necessity.
+ 5
To create an explicit division in the content. This division may contain its specific background, scroll bar, formatting; or this division may be intended as a header, footer or sidebar section.
+ 5
A <div> is a good element to group several elements together, making life easy :|
+ 3
Think of it as a container that can be used to group elements.