Victor's Blog about PHP, Zend Framework & Cake PHP

This blog is about PHP in general. It tackles various topics related to the language itself especially at the OOP level, discusses various topics related to Zend Framework and shares my experience with Cake PHP. I believe that mastering technology is heavily based on one's ability to discuss its details and share knowledge with others. Technology is a wide wild world after all!

How-To Write Valid Facebook Meta Tags in XHTML

Printable Version

victor | 10 November, 2012 08:08

It is a well-known fact that Facebook tags cause W3C Validator errors. This type of errors also cause browsers to delay (slightly) the display of pages while trying to fix such errors.

The trick below causes browsers to ignore this type of tags while, at the same time, allows Facebook to properly retrieve them when needed.

Accessible and Valid XHTML 1.0 Strict and CSS