How can I add new line/linebreak character in title attribute in HTML

user26 picture user26 · Sep 4, 2013 · Viewed 51.1k times · Source

I am using this

<a href="#" title="select from 1: this 2: that" > Click here </a>

When someone hover over it I see all the text in one line.

Is there any way to show it on new line?

Answer

skulled picture skulled · Mar 21, 2014

You can use &#013; or &#10;.

<a href="#" title="select from 1: this &#013; 2: that" >Click here</a>

<a href="#" title="select from 1: this &#010; 2: that" >Click here</a>