Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (20.3k points)

I'm currently adding verbose tooltips to our site, and I'd like (without having to resort to a whizz-bang jQuery plugin, I know there are many!) to use carriage returns to format the tooltip.

To add the tip I'm using the title attribute. I've looked around the usual sites and using the basic template of:

<a title='Tool?Tip?On?New?Line'>link with tip</a>

I've tried replacing the? with:

  • <br />
  • &013; / &#13;
  • \r\n
  • Environment.NewLine (I'm using C#)

None of the above works. Is it possible?

1 Answer

0 votes
by (40.7k points)

Try using the code given below:

<a title='Tool

Tip

On

New

Line'>link with tip</a>

Note: Firefox will not display multi-line tooltips at all though - it will replace the newlines with nothing.

Related questions

Browse Categories

...