WordPress and W3C validator.
-
Hi
I have a WordPress blog, running 2.8.6 currently and when I try to validate the page https://webbusinessworkshops.com/web-success-club-sunday/ at https://validator.w3.org , I get 20 errors, such as:
Line 91, Column 23: document type does not allow element “style” here
<style type=”text/css”>
I’ve played around with the page content and what I have noticed is, that it will validate only when I am using basic HTML tags such as:
<h3>Heading blah blah</h3> <p>Paragraph abc</p>
But once I start using style attribes, my WordPress blog produces pages that wont validate by W3C’s online validator. I.e
<h3 style="text-align: center; padding-left: 60px;">Heading blah blah</h3> <p style="text-align: left; padding-left: 60px;">Paragraph abc </p> ...
Does WordPress only accept basic HTML tags?
Does anyone have any suggestions or explanation for this behaviour?
Thanks for any advice or help,
Reece.
- The topic ‘WordPress and W3C validator.’ is closed to new replies.