Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu October 05, 2022 › #Attribute #image

Which attribute is used with the image tag to specify the location and name of the image file?

The src attribute is used with the <img> tag to specify the location of the image. e.g.

<img src="/img.png">

To specify the name of the image, use the name attribute. e.g.

<img name="No Image">
save
listen
AI Answer
1 Answer
Write Your Answer
  1. <img src="/img.png" name="no image">Use the src attribute to specify the image path . The src attribute is required to display an image on html page.
    Reply Delete
    Share
loading
back
View All