html – W3C validation error – Education Career Blog

The line

<a class="product_image" href="" >
<img class="f-p"src="/shop/img/p/11-53-home.jpg" height="115" width="115" alt="Saint-Aubin 1er Cru &#039;Les Frionnes&#039; 2004"/>

generated by a CMS throws a couple of errors when I validate the page.

1) Attributes construct error

2) Couldn’t find end of Start Tag img line

indicating the “p” of “php” in both cases.

It does validate using the Firefox plug-in, it does not validate in the W3C validator online.

Any suggestion? I am baffled.


If you want this fragment to validate as XHTML you must insert a space between class="f-p" and src="


Are you pasting your php code into the validator? If so, your firefox plugin will validate because it’s parsing the html, but the w3c validator will fail because it won’t parse php.

The best way to test this is to click “view source” in your browser, copy paste that html to the w3c validator and see if that validates.

If it does, everything is fine.

Leave a Comment