SRC Alt Width Height : "Sample - JPG" "Sample Image" "100" "100"
SRC Alt Width Height : "Sample - JPG" "Sample Image" "100" "100"
We can define images by using <img> tag. Image tag contains the below
attributes.
1) Src : We need to give the path of the image. The path can be
absolute or relative path.
2) Alt : This attribute is used to give some description about the image.
When the image is not available or not properly loaded in the
browser then this text will be displayed.
3) Width : It defines the width of the image.
4) Height: It defines the height of the image.
Example: