0
What's the meaning of <div>?
is it just to create class?
3 Answers
+ 4
It's to split up your elements so it's easier to style it with CSS.
+ 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.
0
thanks it's helpful... đ