Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add html inside a title attribute?

Is there a way to put actual html code inside a title attribute on a table row element? My goal is to pop-up not only text but some info-graphics along with it, so a mouseover event thats not a modal would be great. Am I going in the wrong direction?

This table is already using jquery datatables but I don't believe it can do that sort of event.

<tr title='This activity will be open to registration on April 31st' >
.....
</tr>
like image 381
Maelish Avatar asked Jan 15 '14 18:01

Maelish


People also ask

Can you use HTML tags inside the title tag?

Titles may contain character entities (for accented characters, special characters, etc.), but may not contain other markup (including comments).

What is the function of the title attribute in HTML?

The title attribute specifies extra information about an element. The information is most often shown as a tooltip text when the mouse moves over the element. The title attribute can be used on any HTML element (it will validate on any HTML element. However, it is not necessarily useful).


1 Answers

Nope. You'd need to create your own title substitute with JavaScript.

like image 102
j08691 Avatar answered Sep 30 '22 21:09

j08691