You are here: Re: Esoteric XHTML question about href « HTML « IT news, forums, messages
Re: Esoteric XHTML question about href

Posted by Toby A Inkster on 03/14/07 00:46

David Dorward wrote:
> Grant Robertson wrote:
>
> <object data="foo.gif" type="image/gif">
> <object data="foo.jpeg" type="image/jpeg">
> <object data="foo.png" type="image/png">
> <object data="foo.svg" type="image/svg+xml">
> <p>Alternative content.</p>
> </object>
> </object>
> </object>
> </object>
>
> ... has been fine since HTML 4.0 ... shame about the browser support though.
>
>> 2)The alternatives aren't listed in the original content. They are
>> listed in a separate file that can be modified without changing the
>> original content at all.
>>
>> Can this be done in XHTML at all?
>
> Not with pure HTML.

You could use something along these lines:

<object data="foo">
<p>Alternative content</p>
</object>

Then allow the HTTP server and the browser to automatically negotiate the
best choice of content from foo.gif, foo.jpeg, foo.png and foo.svg using
standard HTTP content negotiation (which is well supported by Apache).

How well that all works in practise on today's user agents is another
matter entirely.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация