If I place a div element inside an anchor element, it invalidates my HTML.
What is the reason of not placing block level elements inside inline elements ?
If I place a div element inside an anchor element, it invalidates my HTML.
What is the reason of not placing block level elements inside inline elements ?
If I place a div element inside an anchor element, it invalidates my HTML.
What is the reason of not placing block level elements inside inline elements?
The HTML specification describes which elements may contain other elements. "Flow content" can often contain "Flow Content", or "Phrasing Content", but even this is not always the case. For example, a p
element is a block level element, but it may only contain "Phrasing Content".