How To Display Local Image In Html. The <<strong>img</strong>> element requires the attribute src which allows you to set the location of the file where the image is stored. // filereader instance var reader = new filereader ();

Here’s what our’s looks like: The source attribute (src) is what makes an image tag display an image. The img stands for image and src for the source, which is used to specify the source of an image in the html tag.