What does src mean in html

藏色散人
Release: 2023-01-03 09:31:58
Original
25104 people have browsed it

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!