W3C home > Mailing lists > Public > www-html@w3.org > May 2005

RE: XHTML2 <style> questions

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Thu, 26 May 2005 11:19:56 +0100
Message-ID: <AA7839B8-9560-4741-9CE0-96EF2529B53A@S009>
To: "'Anne van Kesteren'" <fora@annevankesteren.nl>
Cc: <www-html@w3.org>


> So the semantics of the SRC attribute depend on the media 
> type of the content they embed and the element they are applied upon?
> Ugh!

No...the opposite. The semantics of @src are always the same (to embed an
object) but the real advantage is that the semantics of the *element* are
unchanged by the presence of @src [1]. For example:

    <h src="...">Samples</h>
        <h src="...">XML</h>

<h> remains a heading, regardless of what it renders. Similarly:

    <li src="...">buy a book</li>
    <li src="...">book a ticket</li>

<li> remains a list item.

The advantages for accessibility are probably pretty clear.

One little note, since there is therefore no difference in behaviour

  <p src="...">fallback text</p>


  <img src="...">fallback text</img>

you could say this means that you don't need <img>. However, it's such a
common construct that it has been kept as a shorthand for:

  <div src="..." type="image/*">fallback text</div>



[1] http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-embedding.html

Mark Birbeck
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
Received on Thursday, 26 May 2005 10:20:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:10 UTC