In html, src is a required attribute of thetag. Its value is the URL of the image file, which is the absolute path or relative path of the file that references the image;tag creation is the placeholder space for the referenced image.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, DELL G3 computer
src is a required attribute of thetag, it The value is the URL of the image file, which is the absolute path or relative path of the file that references the image.
Possible values:
Absolute URL - points to other sites (such as src="//m.sbmmt.com")
Relative URL - points to within the site file (such as src="/i/image.gif")
img tag introduction: The
img element embeds an image into a web page.
Please note that technically thetag does not insert an image into the web page, but rather links the image from the web page. Thetag creates a placeholder for the referenced image.
The tag has two required attributes: the src attribute and the alt attribute.
Required attributes
alt: text, specifies the alternative text of the image.
src: URL, specifies the URL to display the image.
Recommended learning: "HTML video tutorial" "css video tutorial"
The above is the detailed content of What does src mean in html. For more information, please follow other related articles on the PHP Chinese website!