W3C validation error (what's up with it?)
Can anyone advise me why this code isn't validating please?
I've taken a snippet of html from my dynamic 'news' rotator.
Thank you in advance
<p><span class="fade_title"> <a href="news_details.asp?ContentID=253">News title goes here</a></span></p>
<span class="fade_content"><p>Every order placed with us before the 31st August 2012 will be automatically entered into a prize draw to win a <strong>Test Kit</strong> worth £204 ex VAT!</p>
<p>We are a UK site and unless otherwise stated, all prize draws are only open to UK residents aged 18 or over.</p>
<p>If you would like to enter our prize draw without making a purchase, please <a href="mailto:firstname.lastname@example.org">click here</a> or email <a href="mailto:email@example.com">firstname.lastname@example.org</a>.</p>
<p>Terms & Conditions apply. Winning entry will be selected and notified by 07/09/2012.</p>
the error is:
Line 14, Column 30: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<span class="fade_content"><p>Every order placed with us before the 31st August…
SPANs and other inline elements cannot contain block level elements like P.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)