Latest

recent

HTML img src Attribute

Definition and Usage

The src attribute specifies URL of the image.

Syntax

<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="http://www.1000sourcecodes.com.com/image.gif")
  • 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.