What is HTML Image
In HTML, images are displayed with the tag. The image tag has no end tag.
The tag has one mandatory attribute:
- src attribute- Defines the location of the image
Syntax
<img src="url" />
The src Attribute
To show an image on a web page, you must use the src attribute. Src denotes “source”. The value of this attribute is the path of the image you want to display on the page. The URL leads to the location where the image is stored.
<!DOCTYPE html> <html> <body> <img src="https://www.oixiesoft.com/wp-content/uploads/2022/04/Porcelain-Espresso-Cups-.jpg" /> </body> </html>