How to use a carriage return in an HTML tooltip?

Spread the love

Sometimes, we want to use a carriage return in an HTML tooltip.

In this article, we’ll look at how to use a carriage return in an HTML tooltip.

How to use a carriage return in an HTML tooltip?

To use a carriage return in an HTML tooltip, we use 
.

For instance, we write

<a href="#" title="Line 1&#13;Line 2&#13;Line 3">Hover for multi-line title</a>

to add line breaks with &#13; into the tooltip text.

Conclusion

To use a carriage return in an HTML tooltip, we use &#13;.

Leave a Reply

Your email address will not be published. Required fields are marked *