HTML: How to get images and text on the same line.

html websites

It took a while to pull up from the depths of memory this – how to get an image and text on the same line in HTML. Sounds easy, right? And really it is, when you remember. Something like

Illustration of an image and then text next to it

This is how you do it, with the ‘align’ tag:

<a href="url"><img src="img-src-url" alt="RSS" style="width:20px;height:20px;" align=left>Subscribe</a>

© Amy Tabb 2018 - 2023. All rights reserved. The contents of this site reflect my personal perspectives and not those of any other entity.