Where is the <div> element/lesson for HTML? | Sololearn: Learn to code for FREE!

+6

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

8/15/2019 4:57:56 PM

Maxwell

3 Answers

New Answer

+6

https://www.sololearn.com/learn/HTML/1034/

+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 ☺