Valid XHTML when inserting flash code
Xhtml/CSS January 27th, 2007Even if flash is very used on web pages a lot of web developers still don't know a correct way to insert a .swf movie into a website. There are different ways for different browsers, the <object> element with it's attributes is used for Internet Explorer needs, instead other browsers (like Firefox for example) recognize only the <embed> element. The problem is that this element isn't listed in HTML or XHTML specifications, soo the code is not valid.
To solve this problem I'm using this code which is working in both most important browsers Internet Explorer and Firefox:
Using this method, now you can easily insert flash content in your site without concerning that the final source will not be valid, this works fine for HTML and even XHTML 1.0 Strict .
March 6th, 2007 at 4:47 pm
That’s really great. It solves a lot of problems in xhtml validation and the past era tags when flash was looked upon as the black sheep of the family.
July 17th, 2007 at 2:01 am
[…] is a problem in having a valid XHTML 1.0 strict page when you want to use some flash on it. In another post I described how this can be done but unfortunately that thing wasn’t complying with the XHTML 1.0 […]
October 6th, 2007 at 10:38 pm
Thank you for sharing!