New line in title attribute?

Possible duplicate:
How to use carriage return in HTML tooltip?

Currently, if I want to insert a new line in title=, I would do the following:

<span id="dummy" title="Hello
World!">Dummy</span>

Live demo: http://jsfiddle.net/DerekL/XFMfx/

But it looks weird to me, and it just messed up my HTML file. Imagine all those new lines. So I wonder if there is a better way to achieve this so that it does not spoil it.

Thank.

+5
source share
2 answers

It's impossible. no interserver solutions . If you need a line break in the title attribute, you will have to use JavaScript.

+4
source

Firefox 12 ( Aurora), () . . .

+3

All Articles