z e t a l l i t e
 
Toggle Music
 

zetallite.com. Now Standard Compliant.

In order to achieve standard compliance, one of the things i had to do was use the <object> tag to embed youtube videos. I had earlier encounter a problem where using that tag caused my layout to run. The problem was that WordPress, even with visual editor disabled, inserted <p> tags in between my <object> tag. The solution I found was to train up the tags, leaving no white spaces in between, instead of having them properly nested.

Here’s the XHTML valid code to embed youtube…

<object type=”application/x-shockwave-flash” width=”425″ height=”355″ data=”youtube-link-goes-here”><param name=”movie” value=”youtube-link-goes-here” /><param name=”wmode” value=”transparent” /></object>

2 Responses to “zetallite.com. Now Standard Compliant.”

  1. the cool thing would be to have a plugin for Wordpress to embed youtube videos properly just like uploading images. maybe there is already on out there?…

  2. yea something that’s requires you to just enter the url and size of the video. i’m sure there something out there already heh…

Leave a Reply