July 26, 201016 yr Hey guys I'm trying to validate my site and getting this error on a number of pages, i know what the validator is saying I just don't know what to do to solve it. Any help would be appreciated. The error message states: "Error Line 163, Column 26: Element p not allowed as child of element span in this context. (Suppressing further errors from this subtree.)" <span class="blog_p"><p>Want a professional website, a professional service f…
July 26, 201016 yr Isn't a span an inline element where as a p is a block element can you swap your span for a div
July 26, 201016 yr Author Isn't a span an inline element where as a p is a block element can you swap your span for a div Ive tried that, if i do that the alignment goes all messed up :S
July 26, 201016 yr You cannot <span> a <P>, it needs to be the other way round, if it messes up the alignment, you need to change what you're applying to the span to the p. Just give the <p> a class.
July 26, 201016 yr Author You cannot <span> a <P>, it needs to be the other way round, if it messes up the alignment, you need to change what you're applying to the span to the p. Just give the <p> a class. Ah yes your right WBC, thanks for your help. brownie points have been awarded cheers
Create an account or sign in to comment