HTML
src property
Example
The image is marked up as follows:
Try it »
Browser support





All major browsers support the src property.
Definition and Usage
The src attribute of the tag is required. It specifies the URL of the image.
**Note:** When a web page loads, the browser fetches the image from the web server and inserts it into the page. Therefore, make sure the image is in the same location as the related web page, otherwise visitors may get a broken link icon. If the browser cannot find the image, it displays a broken link icon.
Differences between HTML 4.01 and HTML5
none.
Syntax
Attribute values
| Value | Description |
|---|---|
| URL | The URL of the image.
Possible values: |
HTML tag