HTML <img> src Attribute
An image is marked up as follows:
Try it yourself »
The src attribute is supported in all major browsers.
Definition and Usage
The required src attribute specifies the URL of the image.
Note: When a web page loads; it is the browser, at that moment, that gets the image from a web server and inserts it into the page. Therefore, make sure that the image actually stay in the same spot in relation to the web page, otherwise your visitors will get a broken link icon. The broken link icon is shown if the browser cannot find the image.
Differences Between HTML 4.01 and HTML5
|URL||The URL of the image.
HTML <img> tag
Thank You For Helping Us!
Your message has been sent to W3Schools.