What is the use of the <div> tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the use of the <div> tag?

16th Mar 2017, 2:00 AM
Ashis Pattanaik
Ashis Pattanaik - avatar
2 Answers
0
the <div> tag is used as a general container for other parts of you code. For Example: <body> <div> <p>This paragraph is held within the general div container, wich is located in the body of my program</p> </div> </body> Hope this helped!
16th Mar 2017, 2:03 AM
FastTrack Programming
FastTrack Programming - avatar
0
It is like a group box and very useful for responsive websites using bootstrap
16th Mar 2017, 3:11 AM
Mohammed Adnan
Mohammed Adnan - avatar