0

The <div> element

Why the most webpage source and the good one have the <div> so much , what’s useful for used it ?

6th Jul 2022, 9:26 PM
Maher Mohammed
Maher  Mohammed - avatar
2 Answers
+ 7
Div means division. It can be used to create containers. So many developers use div to create sections in a container on the web page. Div can also be used to style parts of the page so that it looks different than other parts. Today we use Semantic tags such as <main> <nav> <aside> <section> <article.> <footer> in place of divs to section our webpage. But div is still useful.
6th Jul 2022, 9:34 PM
Chris Coder
Chris Coder - avatar
+ 1
I dont and I wont use those fancy html5 aside, section, etc tags. I still prefer div tags spaced out with css. I dont like using bootstrap anymore but it sure is handy if you need to arrange columns using divs
7th Jul 2022, 4:56 AM
ÏÒŻà«šĆ“dԌ૚ ×
ÏÒŻà«šĆ“dԌ૚ × - avatar