The Flash badge that Twitter offers on their website is not XHTML compliant as it uses the embed tag and uses plain ampersand (&) characters instead of & which is the correct XHTML-compliant form. This page shows how to take Twitter's Badge html and reform it into something that is XHTML compliant and will pass an XHTML validator.
<div style="width:176px;text-align:center"> <embed src="http://twitter.com/flash/twitter_badge.swf" flashvars="color1=---COLOR1---&type=user&id=---USERID---" quality="high" width="176" height="176" name="twitter_badge" align="middle" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> <br> <a style="font-size: 10px; color: ---COLOR2---; text-decoration: none" href="http://twitter.com/---USERNAME---"> follow ---USERNAME--- at http://twitter.com</a></div>
<div style="width:176px;text-align:center"> <object type="application/x-shockwave-flash" data="http://twitter.com/flash/twitter_badge.swf" width="160" height="160"> <param name="flashvars" value="color1=---COLOR1---&type=user&id=---USERID---" /> <param name="quality" value="high" /> <param name="mode" value="transparent" /> </object> <a style="font-size: 10px; color: ---COLOR2---; text-decoration: none" href="http://twitter.com/---USERNAME---"> follow ---USERNAME--- at http://twitter.com</a></div>
This technique is demonstrated on the right sidebar of my blog
~~DISCUSSION~~