Posted: October 19th, 2009 By: Devin Walker
As a web designer, I like to have my site validated by the W3C Validator and display the banner on each one of my site’s pages. I embed videos from YouTube on this blog, therefore I must do it in a way that is valid. This tutorial is the code I use to embed Youtube videos, Google Videos, etc. with W3C valid markup. This is just a personal preference, many of the top sites out there are not W3C valid (google, youtube, ebay). This is most likely because the validator tends to be behind the curve and does not recognize newer markup.
<object width="[INSERT WIDTH VALUE]" height="[INSERT HEIGHT VALUE]" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="FlashVars" value="playerMode=embedded" /><param name="src" value="[INSERT VIDEO URL FROM EMBED CODE PROVIDED HERE]" /><embed type="application/x-shockwave-flash" width="[INSERT WIDTH VALUE" height="[INSERT HEIGHT VALUE]" src="[INSERT VIDEO URL FROM EMBED CODE PROVIDED HERE]" flashvars="playerMode=embedded"></embed></object>
I got this code from several other blogs out there:
Let me know what you think! Thanks.
Related posts:
- Google Unveils the Google Font Directory and API Google is looking to help all of us web and graphic designers out there who have been trying to break free of the CSS font-family limitations. How are they doing this? Today Google released the Google Font Directory and Google Font API in attempts to bring a selectable and dynamic font solution to the web. [...]...
- Easy Flash CS4 Alpha Gradient Mask Logo Tutorial Gradient masks are useful for creating cool effects on logos and other flash objects. In this tutorial I will demonstrate a common way to outline or make text 'shimmer' in Flash CS4. Please note: I do use Photoshop CS4 to create the outline, but you can do this in Flash just as easy with the [...]...
- WordPress Fix: Attribute “role” is not a valid attribute I like to design websites that are W3C Compliant. Your WordPress theme may require some tweaking to be valid. One error I kept receiving was: Attribute "role" is not a valid attribute. Did you mean "frameborder" or "scrolling"? I will show you how to correct this error. Simply put, to correct the error we are [...]...
- How to create a tech department logo using Photoshop The following video tutorial instructs how to create a department logo similar to the sample seen here using Adobe Photoshop. Please share your articles and videos! You may want to add a reflection to this logo...
- Flash Dropdown Menu ActionScript 3 Adobe Flash is great for making smooth dropdowns using masks and actionscript to programically tween in and out a menu movie clip. This tutorial requires minor programming skill and at least Adobe Flash CS3 to complete. Please let me know if you have any questions on it! Don't want to watch all this? Download the [...]...







DLOCC Socials