So I have been a CLI or Cron developer in PHP for most my career and now I am learning why I did not like UI work in school ;) I am dealing with HTML5 validation here and I am not finding an answer to a question that is for curosity. I ran the W3C HTML5 validation on my home page and I got several errors around a div being within a <span>
and that is not allowed. I tried changing all <div>
within spans to a <p>
but recieve pretty much the same error. http://www.w3schools.com/html5/tag_span.asp does not explicitly say what elements are allowed within a <span>
and neither does the error from the validator:
Line 85, Column 69: Element p not allowed as child of element span in this context. (Suppressing further errors from this subtree.)
2 questions:
1) What elements if any are allowed within a <span>
?
2) Where can I reference for what elements are allowed within another? I have googled but see nothing that has a "W3C" stamp on it.
<a>
-Tag which can be filled with a block level element like a `<div>' in HTML5. – Grubb