W3C home > Mailing lists > Public > www-validator@w3.org > March 2012

Re: Validation of video and audio tags in XHTML 1.0

From: David Dorward <david@dorward.me.uk>
Date: Thu, 15 Mar 2012 09:47:49 +0000
Cc: <www-validator@w3.org>
Message-Id: <98574B9F-EB3F-414D-B117-2A5C2820AEC2@dorward.me.uk>
To: Stephen Merrette <stephenmerrette@gmail.com>
On 14 Mar 2012, at 23:23, Stephen Merrette wrote:
> I am currently a student at Colorado Technical University and am taking a web development course. We are required to write our code to XHTML 1.0 standards and use the new “video” and “audio” tags to include video and audio in our project.

Your requirements are incompatible. The audio and video elements do not exist in XHTML 1.0. Since XHTML 1.0 is an XML serialisation of HTML 4.01, you should use the list of elements in that specification to see what you can use: http://www.w3.org/TR/html4/index/elements.html

> We are also required to validate our pages to the XHTML 1.0 standard. The problem is that the validation service provided by your organization will not validate the tags.

That is because the validator compares documents to the DTD in the standard, and audio and video are not in that standard.

> If these new tags are intended for the new standard why will they not validate?

The "new standard"[1] is HTML 5 / XHTML 5.  It is this specification that introduces the audio and and video elements: http://www.w3.org/TR/html5/the-iframe-element.html#the-video-element / http://www.w3.org/TR/html5/the-iframe-element.html#the-audio-element

[1] for a value of "new" equal to "will be a standard in the future but is currently a draft"

-- 
David Dorward
http://dorward.me.uk
Received on Thursday, 15 March 2012 09:48:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:50 GMT