Is it possible to load HTML with inline styles into a Texture?

I have been playing using canvas to create a texture for a plane and I was wondering if anyone had managed to create a html asset with inline styles and load that into a canvas and then into a texture?
It strikes me as an easy way to create good looking 3d text displays if it were possible.

found this while researching the answers which seems pretty good

https://playcanvas.com/project/347671/overview/whydoidoits-svg-ui-system

Did you see this tutorial: https://playcanvas.com/project/362231/code

It shows you how to write text into a canvas and use it as a texture.

Yes I have already seen that and done some work along the same lines but it was interested in a quicker more convenient way to convert html into a texture. not to worry the link I provided looks good enough for my use.