As far as I'm aware there is no defined way to cause a line break in ALT text. I have been waiting to find an answer to this myself..
What a shame...
|The title attribute may be set for both A and LINK to add information about the nature of a link. This information may be spoken by a user agent, rendered as a tool tip, cause a change in cursor image, etc. |
The browser supports plain text rather than html. I don't think you can add linebreak to it.
Probably no use to you/bore you silly but its a hugh amount of info about ALT tags..
ALT tags [htmlhelp.com]
This question was answered in this very forum about seven weeks ago.
There are two approaches:
1) Use the character entity for a carriage return, which is Thus:
(For a full list of character entities, try Googling "HTML Character Codes".)
2) to do any additional styling to your "tooltips", Google "CSS tooltips"
While inserting the entity for a carriage return/linefeed (
) will produce the desired result in Internet Explorer for Windows, it is not part of any standard and is not supported, for instance, by Gecko browsers on Windows. I have not tested other platforms.
|it is not part of any standard and is not supported, for instance, by Gecko browsers on Windows |
A floating element may be more like what you want, can put in a nice icon and styled text in it too for example.
Why not just give goth words their own link?
i.e. <a href="mysite.htm">My</a><br /><a href="mysite.htm">Website</a>
If there is another way around this I don't know of one but this should give you the same effect. Or if you really need to have the information split across rows just shorten the width (css or td cell) so it will have no choice but to word wrap across two lines.
Because the alt text is just more info about sth:
In this example it's more info about the person online:
<a href="person.html?id=212" title="More info
and even more info">Andrew Watson</a>
You see why is that?
The link is short because it's a list.
If anybody knows Andrew Watson it's not him :)
Thanks guys for the answer! To know that sth cannot be done is also information.