Giving alternate text semantical meaning

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.


-Andy

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