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

Giving alternate text semantical meaning

From: Andy <aholmes84@shaw.ca>
Date: Sun, 04 May 2003 15:37:48 -0700
To: www-html@w3.org
Message-id: <3EB5963C.6070705@shaw.ca>

Just a rough idea I had, not sure if the 'img' tag is going to remain in 
XHTML2 or not but this could still apply to whatever takes it's place.

Imagine you have a company logo at the top of your page which reads 
'Acme' in some funky text (hence the image format). Your code might read 
like so:

    <img src="company_logo.gif" alt="Acme"/>

Now if you were 'experiencing' this webpage with an aural browser, it 
would just read off 'Acme' as normal text, but what if you could do 
something like:

    <img src="company_logo.gif" alt="&lt;h1&gt;Acme&lt;/h1&gt;"/>

This would give the alternate text some semantical meaning to anyone not 
viewing the page in a visual/graphical browser. Obviously the current 
method would make it impossible to print &lt; or &gt; into the document 
as regular characters, but the idea still remains.

Received on Sunday, 4 May 2003 18:38:49 UTC

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