How to add an image with HTML

To add an image with HTML you need to use the following code…

<img src="image source" alt="image title" />

You just need to replace the src (source) and alt attribute. The source is the link to your image and the alt tag is the title of your image. It is possible to add more tags to the image but we will just show the basics. Below is an example code with our logo.

<img src="https://beginnertuts.com/images/logo.png" alt="BeginnerTuts logo" />

  Written by: Michael from Beginnrtuts.com     25-08-2022     Written in: HTML tutorials

Leave a Reply

Your email address will not be published.