- Can we put div inside li?
- Can we use div inside ul li?
- What elements can go inside Li?
- Can we keep div inside TD?
Can we put div inside li?
Yes you can use a div inside a li and it will validate.
Can we use div inside ul li?
"div's inside ul's are totally legit in html5 and you won't be hurting anything, its honestly that easy.
What elements can go inside Li?
TL;DR: an <li> can contain any element that is valid in <body> . This specifies that an <li> may contain flow content, which is the collection of all block and inline elements.
Can we keep div inside TD?
Using a div instide a td is not worse than any other way of using tables for layout. (Some people never use tables for layout though, and I happen to be one of them.) If you use a div in a td you will however get in a situation where it might be hard to predict how the elements will be sized.