Home>Article>Web Front-end> What does src mean in html

What does src mean in html

藏色散人
藏色散人 Original
2021-03-31 10:57:03 25115browse

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.

What does src mean in html

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/m/")

Relative URL - points to within the site file (such as src="//m.sbmmt.com/m/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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn