Re: Validation of video and audio tags in XHTML 1.0

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 UTC