+ 6
Where is the <div> element/lesson for HTML?
3 Answers
+ 2
It is in block level element
+ 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 âș