Is it possible to remove/move the inline CSS <style>…</style>?
The current HTML5 standard does not allow for <style> elements as children of <div>s (or any element with content model of ‘flow’)
Line 154, Column 24: Element style not allowed as child of element article in this context. (Suppressing further errors from this subtree.)
Contexts in which element style may be used:
If the scoped attribute is absent: where metadata content is expected.
If the scoped attribute is absent: in a noscript element that is a child of a head element.
If the scoped attribute is present: where flow content is expected, but before any other flow content other than inter-element whitespace, and not as the child of an element whose content model is transparent.
Content model for element article:
- The topic ‘Move Inline CSS? – Invalid HTML5’ is closed to new replies.