Forum Moderators: mack

Message Too Old, No Replies

Validating a page with Quicktime VR embedded

How come my page doesn't validate?

         

jetnovo

3:25 am on Apr 7, 2005 (gmt 0)

10+ Year Member



I've just embedded a Quicktime VR movie in an HTML page for the first time, and it works fine. However when validating (using CSE HTML Validator or the W3C Validation Service), I get the following errors:

- there is no attribute "SRC"
- there is no attribute "CONTROLLER"
- there is no attribute "WIDTH"
- there is no attribute "HEIGHT"
- element "EMBED" undefined

Here is the code I used to insert the Quicktime VR:


<embed src="../filename.mov" controller="true" width="320" height="256"></embed>

Here is the header info from my HTML document:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Yadda yadda yadda</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, follow">
<link href="../stylesheet.css" rel="stylesheet" type="text/css">
</head>

Does anyone know what I should change to make my page validate?

BjarneDM

4:16 am on Apr 7, 2005 (gmt 0)

10+ Year Member



<embed> is not part of the formal definition or neither html 4.x nor xhtml 1.x. Thus, you are using an invalid element which is why validators complain. <embed> is a custom tag introduced by both Netscape and Microsoft and is supported by most - if not all - of the browsers.

The correct - but browser-buggy - way is to use <object>. <object> is designed to augment and replace the current embedding elements <iframe>, <img>, <embed> and <applet>.

Source and reference : [amazon.com...] page 222ff. OK - the book is from 2000 and thus a bit dated, but it's still very valid and gives excellent examples, workarounds etc.

So, in order to validate you'll have to rewrite your <embed>s to <object>s and take som care with how the browsers support it.