What is the img tag?

云罗郡主
Release: 2019-01-31 15:11:43
Original
14922 people have browsed it

What is the

img tag? [Recommended tutorial: HTML video tutorial]

What is the img tag?

The img tag defines images in HTML pages. There are two tags There are three required attributes: src and alt. The image will not be inserted into the HTML page, but will be linked to the HTML page.

Function: Embed an image into a web page.

Note: The What is the img tag? tag does not insert an image into the web page, but links the image from the web page. The What is the img tag? tag creates a placeholder for the referenced image. The What is the img tag? tag has two required attributes: the src attribute and the alt attribute.

Note: In HTML, the What is the img tag? tag has no closing tag.

html img tag example, and you can control the size of the image



php中文网

在img标签中可以控制图片的大小

Copy after login


The above is the detailed content of What is the img tag?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
img
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
Popular Tutorials
More>
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!