Is it possible to put a list inside a span tag?

Viewed 24435

I'm aware that <span> tag is an inline element while <li> is a block element. However, we have a tooltip that uses a <span> tag and we'd like to make the text inside that tooltip into a list. However, putting <ul><li> inside span doesn't work in all browsers (and it's invalid).

This is the HTML code:

<a class='tooltip'>Text<span>Text that we want to become a list</span></a>

Is there a possible work around?

4 Answers
Related