0

Where should I use the <div> tag?

13th Sep 2020, 8:15 AM
Muh'd Mustafa Ibrahim
Muh'd Mustafa Ibrahim - avatar
3 ответов
+ 4
Div is used inside body tag Div tag is used as a container for other html elements. it also used for styling with css.
13th Sep 2020, 8:30 AM
ANMOL
ANMOL - avatar
+ 4
It's a box that can fit other html things inside it It goes inside the body tag Example <div><h1>hello<h1/></div> You can customise it with CSS Change its size,color etc🙂
13th Sep 2020, 11:46 AM
Atoms~⚛
Atoms~⚛ - avatar
+ 1
Where you want.You can use division that englob one element or more to separate it from other and to set its own style or position on the page.You can use div inside other inner/outer parent/child.
13th Sep 2020, 8:26 AM
HBhZ_C
HBhZ_C - avatar