W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2007

[whatwg] <video> title or alt attribute

From: Charles McCathieNevile <chaals@opera.com>
Date: Thu, 26 Apr 2007 10:03:39 +0200
Message-ID: <op.trdsodnjwxe0ny@widsith.lan>
Actually the proposed model allows for the use of real content, not just an attribute. This is generally regarded as a better approach for accessibility since it provides much more flexibility (and as it happens provides for better backwards compatibility as well. So instead of 

<video src="foo"  alt="video of me falling off a bike">

You can have

<video src="foo">
  <object type="video/theora+ogg" src="foo">
    Sorry, it seems your browser isn't playing <a href="foo"><img src="fooshot" alt=""><br>
     the cool video of me</a> that I put here. Pity, you are missing out on watching me fall off a bicycle.
    <p>Still, you can always read <a href="reviews">the reviews and descriptions</a> from my friends instead...
  </object>
</video>

or something. (If you are using HTML as a source for multilingual sites, or something more complex, you get even more magic. But that's a somewhat advanced use case).

cheers

Chaals
   
Received on Thursday, 26 April 2007 01:03:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC