...Summary of the problem...
Example of what works
Title attribute works great on image, for example
<img
src="http://imgs.xkcd.com/comics/the_general_problem.png"
title="I find that when someone's taking time to do something right in the present, they're a perfectionist with no ability to prioritize, whereas when someone took time to do something right in the past, they're a master artisan of great foresight."
alt="The General Problem"
>
The problem (Example of what doesn't work)
I'm trying to embed an iframe video, like when you click "share this video" off of YouTube or (in this case) SouthPark Studios
It seems that either:
- I don't know the right attribute to use with iframe element (it is aparently not "title"), or
- "title" is corect, but iframe trumps it with some kind of layering issue. See below
...Further reading: Details on what I already tried...
1st try: Wrap it in a div, & give the div max layer
<div
title="South Park video about Ginger Kids coming in the night to carry off the town's other kids"
style="z-index: 2;"
>
<iframe
src="http://media.mtvnservices.com/embed/mgid:arc:video:southparkstudios.com:1feaa96c-ed01-11e0-aca6-0026b9414f30"
width="360"
height="293"
frameborder="0"
>
</iframe>
</div>
Sources:
https://stackoverflow.com/a/7117107/1421642, for divs
http://www.echoecho.com/csslayers.htm, for layer (z-index)
2nd try: Just put "title" in iframe tag
<iframe
title="South Park video about Ginger Kids coming in the night to carry off the town's other kids"
src="http://media.mtvnservices.com/embed/mgid:arc:video:southparkstudios.com:1feaa96c-ed01-11e0-aca6-0026b9414f30"
width="360"
height="293"
frameborder="0"
>
</iframe>
Results for both trys
In both cases, I mouse over the iframe and nothing happens. Compare that to my "example of what works" code at the very begining, where you can mouse over and see a beautiful little popup
Please help :)