Re: Giving alternate text semantical meaning


> 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;"/>

You would do that like this:
   <h1><img src="company_logo.gif" alt="Acme" /></h1>

A better example for your idea is the headline
   <h1>A beginner's guide to
     <abbr title="Scalable Vector Graphics">SVG</abbr></h1>

Now imagine again, that you wanted to show this headline in such a fancy 
way that an image is required. Currently you would have to split the 
image in several parts:

     <img src="abeginnersguideto.jpeg" alt="A beginner's guide to " />
     <abbr title="Scalable Vector Graphics">
       <img src="svg.jpeg" alt="SVG" />
   (without spaces between tags)

Not so fine.

Received on Monday, 5 May 2003 03:09:21 UTC