Re: Why Element h2 not allowed as child of element span?

On 19 Apr 2023, at 11:31, new visiona wrote:

> "Error: Element h2 not allowed as child of element span in this 
> context.
> (Suppressing further errors from this subtree.)"
> Why is H2 not allowed as a child of element span?! What is the reason?
> What element should I use instead?

the word span in error 21 of 
https://validator.w3.org/nu/?doc=https%3A%2F%2Fnewvisiona.com%2F is a 
hyperlink. Click on it and it brings you to an explanation what span is 
about. I couldn't do it better.

Essentially I think span cannot contain other block elements. div can.

/Marcus

Received on Thursday, 20 April 2023 16:35:18 UTC