keys88
08-08-2010, 12:14 AM
I would like to know the correct way to display a “.mov” video in an html 4.01 Strict page.
In fact my page displays the video perfectly in Mac Safari and Firefox, but the Validator flunks it on multiple counts, and I want all my code to validate.
Here’s the code. I’ve found it in several top instructional sites and copied straight into my page:
<div id="photo-box">
<embed src="my-movie.mov" width="640" height="496" autostart="false" >
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="496" width="640">
<param name="src" value="my-movie.mov">
<param name="autoplay" value="false">
<param name="type" value="video/quicktime" height="496" width="640">
</embed>
</div>
The Validator says:
-- element “EMBED” undefined
-- these are not attributes for the EMBED element: “SRC” “WIDTH” “HEIGHT” “AUTOSTART”
which makes no sense to me.
(Comment: My Mac Safari and Firefox both display the page when I use only that first <embed> line, omitting the <object> and <param> lines, but I've read that those lines are needed for PC. In my Mac, including those lines makes no difference in how the page displays.)
The Validator suggests using a Transitional doctype, but with 4.01 Transitional it returns all the same errors.
Can someone tell me what's needed to do to display a “.mov” file in a 4.01 Strict page?
Thank you.
.
In fact my page displays the video perfectly in Mac Safari and Firefox, but the Validator flunks it on multiple counts, and I want all my code to validate.
Here’s the code. I’ve found it in several top instructional sites and copied straight into my page:
<div id="photo-box">
<embed src="my-movie.mov" width="640" height="496" autostart="false" >
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="496" width="640">
<param name="src" value="my-movie.mov">
<param name="autoplay" value="false">
<param name="type" value="video/quicktime" height="496" width="640">
</embed>
</div>
The Validator says:
-- element “EMBED” undefined
-- these are not attributes for the EMBED element: “SRC” “WIDTH” “HEIGHT” “AUTOSTART”
which makes no sense to me.
(Comment: My Mac Safari and Firefox both display the page when I use only that first <embed> line, omitting the <object> and <param> lines, but I've read that those lines are needed for PC. In my Mac, including those lines makes no difference in how the page displays.)
The Validator suggests using a Transitional doctype, but with 4.01 Transitional it returns all the same errors.
Can someone tell me what's needed to do to display a “.mov” file in a 4.01 Strict page?
Thank you.
.