Anyone able to validate this code for me? Code: <div style="margin-top:8px;"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="120" height="600" id="clickTAG" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="FlashVars" value="clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09"><param name="movie" value="http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf &clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="[URL="http://www.adminaddict.net/forum/view-source:http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf%20&clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09"]http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf &clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09[/URL]" FlashVars="clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" quality="high" bgcolor="#ffffff" width="120" height="600" name="newcombo46860" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div> </div> It is giving us 19 errors on our homepage
Im not on about testing if it works, it works just fine, I am talking about getting it to validate so that it is valid xhtml transitional code
Michael, you may want to add the info on the actual errors you're getting. Good luck, I know how annoying trying to fix those errors can be sometimes!
Replace any '&' signs with '&'. See if that helps, it usually leads to a lot of errors when I forget to do that.
That's the first thing that I was going to suggest cheatmaster as I had like 40 errors on a page last night that I fixed with just that
Take out the last line... Code: </div> One of your param tags is fubared as well. You need to fix it. Code is easier to read when there is one tag per line and it is properly indented. Obvious errors become easy to spot. HTML: <div style="margin-top:8px;"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="120" height="600" id="clickTAG" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="FlashVars" value="clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09"> <param name="movie" value="http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf &clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf &clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" FlashVars="clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" quality="high" bgcolor="#ffffff" width="120" height="600" name="newcombo46860" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </div> </div> For anything else, need to know what doctype you're using. Different doctypes have different rules.
I checked, and most of this comes from using the embed element in part of it, since it's not a recognised HTML tag.
I think Im may leave this one It will only invalidate our forums over the next month and once its gone its gone with those errors too.
I think it is since it wont be there afterwards, although validating it would be a great option, I am no good with validation, especially of tags I rarely use.
Just move the code to a series of Javascript write statements. It would validate then. However you can rest pretty assured that unless you have pedantic stuck-up users, no one is going to validate your site before they use it.