I am using some jquery which applies an overlay on an image on hover. The script uses content from the image's title attribute to display over the image. When I tested this locally, it seemed to work, and I could style the text within
title="" however, I'm now trying to get it working in WordPress, and it doesn't seem to let me style the text within the title attribute.
<img src="img.png" title="<h1>Title heading</h1><hr><h2>Title sub heading</h2>"