+ 4

Guys help me... Why do we use <div> tag in html..

8th Nov 2017, 2:46 PM
Aidaan Aziz 🇮🇳🇮🇳
Aidaan Aziz 🇮🇳🇮🇳 - avatar
5 Antworten
8th Nov 2017, 2:58 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 6
div can contain text.It is also used as parent to group elements. While coding, you will feel its necessity.
8th Nov 2017, 4:14 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 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.
8th Nov 2017, 2:51 PM
DAB
DAB - avatar
+ 5
A <div> is a good element to group several elements together, making life easy :|
8th Nov 2017, 4:09 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Think of it as a container that can be used to group elements.
8th Nov 2017, 2:58 PM
josh mizzi
josh mizzi - avatar