PDA

View Full Version : <IMG... alt="*****".....>


Wobbler
11-26-2002, 07:18 PM
How du I make [Enters] in my "alt" discrption for images???

x_goose_x
11-26-2002, 07:38 PM
A ghetto way, but this seems to work.

<IMG src="mypic.jpg" alt="first line
secondline">

chrismiceli
11-26-2002, 08:19 PM
never tried but mabey more correct, may not work at all
<img... atl="hi \n hi">
try it.

cg9com
11-26-2002, 08:27 PM
\n wont work...

jkd
11-26-2002, 08:38 PM
Try \r or \r\n or even &amp;#10;

jkd
11-26-2002, 08:47 PM
In a page encoded in Unicode:

&amp;#x2028;

Would be the correct way to reference a line-break...

In simple ASCII, I believe this should work:
&amp;#x0D;&amp;#x0A;


Also, keep in mind that it is incorrect behavior for a browser to use alt text as a tooltip. This ruins web accessibility.

Instead, use the title attribute, which can be applied to virtually any element. :)