How to put an image in HTML?

To put an image in HTML, you can use <img> HTML elements. Put image URL in value or "src" attribute of <img> element. "alt" is used in case the image fails to load then "alt" text will display.

Basic syntax :

<img src="target_image.jpg" alt="Target Image">

Go from files to website in seconds.

Start a free trial for 7 days — no credit card required

Get Started for Free