Posts Tagged ‘XHTML’

YouTube With XHTML 1.0 Strict Valid!!

Posted on November 2006 at about 2:14 PM by hwa

For those who broadcast YouTube in their blog before, you should know that the YouTube embed tag is actually not XHTML valid, it’s because the <embed> had been deprecated from XHTML 1.0.

By default the YouTube embed tag should looks something like this:

  1. <object width="425" height="350">
  2. <param name="movie" value="http://www.youtube.com/v/m_Dxp5HQNIA"></param>
  3. <param name="wmode" value="transparent"></param>
  4. <embed src="http://www.youtube.com/v/m_Dxp5HQNIA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350">
  5. </embed>
  6. </object>

But it contain the <embed> HTML tag which is not allow in XHTML 1.0 Strict, so in order to make it pass the validation, i change the above code to something like this:

  1. <object type="application/x-shockwave-flash" width="425" height="350" data="http://www.youtube.com/v/m_Dxp5HQNIA"><param name="movie" value="http://www.youtube.com/v/m_Dxp5HQNIA" /></object>

YouTube plays well with the new tag, and it doesn’t have the <embed> tag, which is XHTML 1.0 Strict valid!

hwa2u.com Is Now XHTML 1.0 Strict!!

Posted on November 2006 at about 2:52 AM by hwa

While developing my new theme, one of my target is to achieve XHTML 1.0 Strict validation, at first i thought it won’t be that easy because it’s not only the templates i need to validate, but the plugins as well, so i guess it won’t be an easy job.

However i still manage to fix everything then pass the XHTML 1.0 validation, and now i’m happy with it. 🙂 but on second thought it’s not that hard to reach XHTML 1.0 Strict validation, all you have to do is just follow the rules right and you won’t go wrong.

There are a few thing that i learned while developing this theme, some WordPress tricks and valid XHTML stuff, will share them out within this few days, but for now, please let me take a break first. 🙂