HTML img src attribute
Browser Support
All major browsers support the src attribute.
Definition and Usage
src attribute src tag is required. It sets URL of the image.
Note: When a page is loaded, the browser to obtain images from a Web server, and insert it into the page.Therefore, ensure that the image associated with the page at the same point, otherwise the visitor may get a broken link icon. If the browser can not find the image will display a broken link icon.
Differences between HTML 4.01 and HTML5
no.
grammar
<img src="URL">
Property Value
值 | 描述 |
---|---|
URL | 图像的 URL。 可能的值:
|
HTML <img> tag