Insert line break (enter) using HTML codes

12

I'm trying to put an enter / line break ( \n , <br /> , etc) in title of an html element. For that, I was searching for HTML Codes something equivalent to the &nbsp used to give a "space". I found few references but none that really worked ...

I found &#10 but it does not work ( source ).

How can I actually give an enter / line break in a title of an html element?

Code:

<input type="button" value="butão" title="tesxto 1 &#160 texto 2"/>

link

Edit:

In my application I'm using devexpress, and I can not use:

<a title='1ª linha
2ª linha
3ª linha
'>link</a>
    
asked by anonymous 08.09.2014 / 11:43

1 answer

13

jsfiddle

Use &#013; for line break

<a title='1ª linha&#013;2ª linha&#013;3ª linha'>link</a>

output

1ª linha
2ª linha
3ª linha

font

    
08.09.2014 / 12:20