+ 6

Where is the <div> element/lesson for HTML?

15th Aug 2019, 4:57 PM
rewfsgdf
rewfsgdf - avatar
3 Answers
15th Aug 2019, 5:37 PM
Solo
Solo - avatar
+ 2
It is in block level element
17th Aug 2019, 4:52 AM
Tony Stark
Tony Stark - avatar
+ 2
What do you want to learn about div tag? İt's a container you can use it as you want .. doesn't have a special defualt attributes like h1 or b tags have .. it's a block-level tag so you can insert any inline-level tag into it but you can't insert it into other block level tags .. actually the code still works if you insert a block level tag inside another block tag but it will not work correctly if you insert p tag inside another p tag you will get three paragraghs not only two and when you use classes or ids your css code or js code or php code will not work correctly so be careful about levels of tags .. that's what comes to my mind about div for now .. hope it'll be useful helpful for you ☺
17th Aug 2019, 3:36 PM
Safaa Alnabhan
Safaa Alnabhan - avatar