How to add HTML support in Bootstrap title/tooltip

The solution is really easy. Simply append the tag data-html="true" to the element and you can use HTML code within the title="" tooltip.

Code example:


You can use a wide array of HTML tags within the title="", such as <marquee>. Yes, that actually works.

<span data-html="true" title="<marquee>Welcome to the 90s</marquee>"> Do not hover me </span>

Was this post helpful?

Leave a Reply

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