kennith Posted September 22, 2010 Share Posted September 22, 2010 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en"> Because of my doc type I get an invalid markup when I use the fallowing code. <xmp> <object type="application/x-shockwave-flash" data="http://www.youtube.com/cp/vjVQa1PpcFMAGkRrFv_TITNam7sRcML3bVklDEp5OqE=" width="640" height="410"> <param name="movie" value="http://www.youtube.com/cp/vjVQa1PpcFMAGkRrFv_TITNam7sRcML3bVklDEp5OqE=" /> </object></xmp> Is there a different element I can use for the same purpose. I want people to be able to grab my code from the site for people that can't read html. Link to comment Share on other sites More sharing options...
boen_robot Posted September 22, 2010 Share Posted September 22, 2010 You mean people without Flash? You can just place the fallback content within the object element, like: <object type="application/x-shockwave-flash" data="http://www.youtube.com/cp/vjVQa1PpcFMAGkRrFv_TITNam7sRcML3bVklDEp5OqE=" width="640" height="410"> <param name="movie" value="http://www.youtube.com/cp/vjVQa1PpcFMAGkRrFv_TITNam7sRcML3bVklDEp5OqE=" /> <a href="http://www.youtube.com/cp/vjVQa1PpcFMAGkRrFv_TITNam7sRcML3bVklDEp5OqE=">Watch directly on YouTube</a></object> Link to comment Share on other sites More sharing options...
Ingolme Posted September 22, 2010 Share Posted September 22, 2010 Just substitute the < symbols with < <object type="application/x-shockwave-flash" data="http://www.youtube.com/cp/vjVQa1PpcFMAGkRrFv_TITNam7sRcML3bVklDEp5OqE=" width="640" height="410"><param name="movie" value="http://www.youtube.com/cp/vjVQa1PpcFMAGkRrFv_TITNam7sRcML3bVklDEp5OqE=" /> </object> Link to comment Share on other sites More sharing options...
kennith Posted September 22, 2010 Author Share Posted September 22, 2010 Just substitute the < symbols with <<object type="application/x-shockwave-flash" data="http://www.youtube.com/cp/vjVQa1PpcFMAGkRrFv_TITNam7sRcML3bVklDEp5OqE=" width="640" height="410"><param name="movie" value="http://www.youtube.com/cp/vjVQa1PpcFMAGkRrFv_TITNam7sRcML3bVklDEp5OqE=" /> </object> Thanks Ingolme, that is exactly what I needed. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.