Sent by David Dorward on 7 July 2004 10:10
On 30 Jun 2004, at 14:30, Scott Hamm wrote:
> <a href="foo.htm"><img src="foo.jpg" alt="Foo This" height=10 width=50
> /></a>
> Converted to css-p as follows:
> <a class="foo" href="foo.htm"><span>Foo</span></a>
That looks more like Image Replacement then Positioning. Why are you
using image replacement? The only good reason I've heard is if you wish
to use semantic markup in the alternative text, and I'm not entirely
convinced about that.
> How can I replace alt="" that was lost, is there a way I
> can use css to emulate the alt="" tag?
It is an attribute, not a tag. That is what you put in the <span>.
Its possible that you think that "alt" is means "tooltip" (it doesn't,
it means "alternative"). You can provide advisory information about
most elements using the title attribute which "may be rendered by user
agents in a variety of ways. For instance, visual browsers frequently
display the title as a 'tool tip'".
<http://www.w3.org/TR/html4/struct/global.html#adef-title>
--
David Dorward
<http://dorward.me.uk/>
<http://blog.dorward.me.uk/>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/