Forum Moderators: open

Message Too Old, No Replies

alt tags

         

smagdy

10:51 am on Jul 22, 2005 (gmt 0)

10+ Year Member



Hi, just simplae quesion..

how can u make a new line in alt tags..

when i write <br>

it displays br

thanks

Alternative Future

10:54 am on Jul 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi smagdy,

This cannot be done with the alt tag.
You could create some nifty layer with a mouseover event to show a replicated alt tag.
Or do a search on CSS tooltips

-GS

g1smd

11:21 am on Jul 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There is no such thing as an <alt> tag.

There is, however, an alt attribute that is used with the <img> tag.

Span

11:40 am on Jul 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could try adding a title attribute and use &#13;

Like this: <img src="" width="" height="" alt="My image" title="This is my &#13; image." />

smagdy

12:42 pm on Jul 22, 2005 (gmt 0)

10+ Year Member



Thanks it worked using..

<img src="image.jpeg" alt="My image" title="This is my &#13; image." />

so when we use "title=bla" it just ignores the original "alt tag" or what?

thanks

smagdy

12:43 pm on Jul 22, 2005 (gmt 0)

10+ Year Member



g1smd:

sorry of course i didnt mean alt tag.. but i was really in hurry ;)

Trace

1:15 pm on Jul 22, 2005 (gmt 0)

10+ Year Member



Using both is always good.

The Alt property is used as information about the picture, alt="Picture of a house"

But you don't always want that to appear when you move your mouse over, so you add, title="this is my house"

The alt property remains important for search engines but title will always be used for display purposes.

"This is my &#13; image" should be used in your title property and not in the alt property. Addign a line break in the alt serves no purpose.

g1smd

1:24 pm on Jul 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The title attribute should provide a popup tooltip. That is its function.

The alt attribute should appear only if the image fails to load, or image loading is switched off.

If the alt text pops up, then that is a bug (IE).