I found the W3C’s Validation Site the other day, so I decided to give my blog a whirl through it. My CSS was valid straight away – bonus! But my web page wasn’t – I had 46 errors to correct!
As it turns out, some of the errors were caused by the way that ASP.NET renders HTML, for example labels get changed to a span tag – and a p tag isn’t valid inside a span. So some of the fixes involved me changing the way I render the articles inside a repeater.
But some of the fixes were a bit more obscure – for example, an ampresand inside stories was getting interpretted as an escape sequence. Bugger! I’ve put in some fixes to get around the problems that I found, so hopefully the site will stay compliant. Anyway – in the meantime, I’m now sporting my extra geeky status with my W3C compliance images in the left-hand nav bar. Wicked!

No comments. Be the first!