Plz any one explain about <div> element? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Plz any one explain about <div> element?

14th Jul 2019, 4:34 AM
ram roop Passionate to Learn Coding
ram roop Passionate to Learn Coding - avatar
2 Answers
+ 10
• <div> tag does "division" of content in Webpage like Text, Images , header, footer, navigation bar. • Simply it is a Container
20th Jul 2019, 10:06 AM
Farhanaz 🌟
Farhanaz 🌟 - avatar
+ 2
div is the hardest to explain because it's a general use tag. 80% of your html code is divs inside divs divided by divs. It can be a container, it helps you position elements, style backgrounds of elements and so much more https://guide.freecodecamp.org/html/elements/div-tag/
14th Jul 2019, 4:39 AM
HNNX 🐿
HNNX 🐿 - avatar