Web Team Procedures and Notes
This page is intended for use only by the Web Team.
Valid XHTML <object> Tags for Videos and more
Go to Index of Valid XHTML <object> Tags.
Embedding a YouTube Video using Valid XHTML
NOTE: Tested and validates. Off-site service: youtube.com.
<div class="embeddedmedia video centertag" style="width:425px;">
<object type="application/x-shockwave-flash"
style="width:425px; height:344px;"
data="http://www.youtube.com/v/MOVIEID&rel=0">
<param name="movie" value="http://www.youtube.com/v/MOVIEID&rel=0" />
<param name="wmode" value="transparent" />
</object>
<span class="smalltext">(Video is not captioned; no transcript.)</span><br />
<span class="source"><a href="http://www.youtube.com/watch?v=MOVIEID">VIDEONAME video from Ohlone College on YouTube.</a></span>
</div>
- http://www.bernzilla.com/item.php?id=681
- Adding &rel=0 after video ID number "turns off related videos in embedded players"
- Default size: 425x344
Exact code for above YouTube video:
<div class="embeddedmedia video centertag" style="width:425px;">
<object type="application/x-shockwave-flash"
style="width:425px; height:350px;"
data="http://www.youtube.com/v/Co1s_DKQnH0&rel=0">
<param name="movie" value="http://www.youtube.com/v/Co1s_DKQnH0&rel=0" />
<param name="wmode" value="transparent" />
</object><br />
<span class="smalltext">(Video is not captioned; no transcript.)</span><br />
<span class="source"><a href="http://www.youtube.com/watch?v=Co1s_DKQnH0">The Real World Ohlone video from Ohlone College on YouTube.</a></span>
</div>
