Hi danners-ga,
The <embed> tag was introduces by Netscape Navigator 2, but it was
never part of any HTML/XHTML specification. Therefore, code containing
this tag will never be successfully validated by the W3C validator.
There are a couple of ways to get around this problem:
- You could use Javascript to add the embed tag to the HTML
file
- You could use the object tag, which IS part of the
HTML/XHTML spec, to include the Flash movie.
- Using Javascript
================
You can find a sample javascript template for embedding flash files
in HTML pages, here:
- AzizAvenue: Validating W3C Standards with Flash
(http://www.azizavenue.com/main/tips_tutorials/flash/validate_flash/index.cfm)
You will note that the page itself contains a flash movie,
and is still XHTML compliant.
The following Word document also provides a sample javascript
solution for your problem:
- CASE STUDY: How to make Macromedia Flash accessible
(http://lists.w3.org/Archives/Public/w3c-wai-gl/1999OctDec/att-0062/01-CASE_STUDY-Macromedia1.doc)
- Using the OBJECT tag
====================
Drew McLellan provides information on how you can create valid
standard compliant pages containing flash movies, in the following
article:
- A List Apart: Flash Satay
(http://www.alistapart.com/stories/flashsatay/)
If you use Flash MX for development, then you will find the
following template, based on the above article by Dave, useful:
- webqs.com: Publishing XHTML 1.0 compliant code from Flash MX
(http://www.webqs.com/experiment.php?id=15)
=========================
Hope this helps.
If you need any clarifiacations, just ask!
Regards,
Theta-ga
:-)
==========================
Google/Google Answers Search Terms Used:
flash XHTML validate
javascript flash html validate |
Clarification of Answer by
theta-ga
on
26 Jul 2003 09:43 PDT
Hi Dan,
The techniques mentioned in the answer will work for HTML 4.01
validation also. For example, the following site uses the Javascript
method to embed flash in an HTML page, and still be valid HTML 4.01
Transitional:
- Redman Jones
(http://www.redmanjones.co.uk/)
Redirecting Netscape users to a different non-compliant page would
also work, though I would not select it as the primary solution due to
the following reasons:
- More Work. It will be upto you to maintain two versions of the same
page, and make sure that both contain the same updated information.
- Page redirects: Most search engines are unable to follow page
redirects based on browser types, so your redirected page may not be
indexed by search engines.
- Since the Netscape page would be invalid HTML 4.01, you would no
longer be able to claim HTML 4.01 compliance for your entire site.
My recommendation is that you try out either the Javascript or the
Flash satay method first. If these methods fail to satisfy your needs
for some reason, you can try out the page redirect method.
Hope this helps.
If you need any clarifications, just ask!
Regards,
Theta-ga
:-)
|