0

What's the meaning of <div>?

is it just to create class?

5th Dec 2016, 2:12 AM
Frisco Kharisma
3 Réponses
+ 4
It's to split up your elements so it's easier to style it with CSS.
5th Dec 2016, 2:29 AM
Keto Z
Keto Z - avatar
+ 3
It's a block type tag that has no semantic value and is mainly used to structure your page. For example if you need to group some other tags like <p>,<span> and etc. - You may use <div>. Need to draw a box? - <div>! Need to draw a circle? - <div>! Just give it a class or an id and style it in CSS or control it via JS.
5th Dec 2016, 3:41 AM
EgorL
0
thanks it's helpful... 😁
5th Dec 2016, 6:50 AM
Frisco Kharisma