Welcome to my W3C valid webpage!

Tired of banner ads rendering your webpage NON-valid?

Hi. I'm testing my web developing skills. Due to the fact that this webhost banners are _NOT_ XHTML compatible, they always screw up the W3C validator.

But not anymore. I figured out a way to render them in IE6 (so they are not "altered in any way" as the contract specifies), and STILL be validated by the W3C validator.

How do banner ads work?

In this particular case, they're added after the <body> and </body> tags automatically by a web host script (PHP perhaps?). So I need to make a pair of "fake" <body> and </body> tags that Internet Explorer will render as valid, but the W3 validator will ignore.

How did I do it?

Simple. I wrote those tags inside CDATA sections (inside an "unknown language" scripts so that the browser won't choke). The CDATA are a pair of special "tags": <![CDATA[ and ]]> ( in this case the "and" would be locked inside a CDATA section).

This way (a little bit complicated) I can make my webpages and have them valid, DESPITE the banner ads!

Here's the source code for you folks:

Ta-da! :D

Valid XHTML 1.0!