<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Gary Pendergast &#187; XHTML</title> <atom:link href="http://pento.net/tag/xhtml/feed/" rel="self" type="application/rss+xml" /><link>http://pento.net</link> <description>I&#039;m on the Internet</description> <lastBuildDate>Sat, 03 Dec 2011 09:27:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <cloud
domain='pento.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' /> <item><title>Embed YouTube videos with XHTML 1.0 Strict code</title><link>http://pento.net/2009/04/14/embed-youtube-videos-with-xhtml-10-strict-code/</link> <comments>http://pento.net/2009/04/14/embed-youtube-videos-with-xhtml-10-strict-code/#comments</comments> <pubDate>Tue, 14 Apr 2009 09:10:23 +0000</pubDate> <dc:creator>Gary</dc:creator> <category><![CDATA[Misc]]></category> <category><![CDATA[XHTML]]></category> <category><![CDATA[youtube]]></category> <guid
isPermaLink="false">http://pento.net/?p=203</guid> <description><![CDATA[Being a bit of a web geek, I like to keep my sites running in Strict mode for whatever HTML/XHTML version I happen to be working in. So, I was saddened to discover that the Embed code that YouTube gives doesn&#8217;t pass XHTML 1.0 Strict, due to their use of the now deprecated embed tag. [...]]]></description> <content:encoded><![CDATA[<p>Being a bit of a web geek, I like to keep my sites running in Strict mode for whatever HTML/XHTML version I happen to be working in. So, I was saddened to discover that the Embed code that YouTube gives doesn&#8217;t pass XHTML 1.0 Strict, due to their use of the now deprecated <code>embed</code> tag. Happily, there&#8217;s a way to fix this. As a bonus, the code required is much nicer than the code YouTube gives you:</p><div
class="wp_syntax"><div
class="code"><pre class="xhtml" style="font-family:monospace;">&lt;object type=&quot;application/x-shockwave-flash&quot; style=&quot;width:480px; height:385px;&quot; data=&quot;http://www.youtube.com/v/p1QMoQ3jbjc&quot;&gt;
    &lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/p1QMoQ3jbjc&quot; /&gt;
&lt;/object&gt;</pre></div></div><p>You just need to replace the two URLs with the one for your video, and set the appropriate width/height. YouTube&#8217;s defaults are 320&#215;265, 425&#215;344, 480&#215;385 and 640&#215;505.</p><p>There you have it! It&#8217;s a simple as that. And to prove it works, here&#8217;s the same code from above:</p><p
style="text-align: center;"><object
type="application/x-shockwave-flash" style="width:480px; height:385px;" data="http://www.youtube.com/v/p1QMoQ3jbjc"><param
name="movie" value="http://www.youtube.com/v/p1QMoQ3jbjc" /></object></p> ]]></content:encoded> <wfw:commentRss>http://pento.net/2009/04/14/embed-youtube-videos-with-xhtml-10-strict-code/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> </channel> </rss>
