html img tag


  Translation results:

英[ˈɪmɪdʒ] 美[ˈɪmɪdʒ]

n. Image; portrait; concept, intention; mirror, image

vt. Reflection; imagination; image of...; symbol

Third person singular: images Plural: images Present participle: imaging Past tense: imaged Past participle: imaged

html img tagsyntax

Function:Embed an image into a web page.

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

Note: In HTML, the <img> tag has no closing tag.

html img tagexample

<html>
<body>

<img src="http://img.php.cn/upload/article/000/000/003/5a9675cba0704196.jpg"  alt="php中文网" />

</body>
</html>

Run Instance»

Click the "Run Instance" button to view the online instance

<html>
<body>

<img src="http://img.php.cn/upload/article/000/000/003/5a9675cba0704196.jpg" width="400"  alt="php中文网" />
<p>在img标签中可以控制图片的大小</p>
</body>
</html>

Run instance»

Click the "Run instance" button to view the online instance

Home

Videos

Q&A