How can I put text over an image in HTML?

The img tag doesn’t have any attributes to put text inside of it. To achieve what you want you have to use multiple divs and play with the position and display properties.

Centered

See also  Starting projects with Web Components and open-wc tools
Loading Facebook Comments ...
Loading Disqus Comments ...