HTML img src Attribute

Definition and Usage

The src attribute specifies URL of the image.


<img src="URL" />

Syntax Example

<img src="demo_img.jpg" />

Attribute Values

Value Description
URL Specifies URL of the imagePossible values:
  • An absolute URL - Is used to navigate to another web site (like src="")
  • A relative URL - Is used to navigate within a site (like src="image.gif")
HTML img src Attribute Reviewed by 1000sourcecodes on 04:29 Rating: 5
Powered by Blogger.