write the HTML code to insert image in HTML document
Answers
Answered by
3
The HTML <img> tag is used to embed an image in a web page.
Images are not technically inserted into a web page; images are linked to web pages. The <img> tag creates a holding space for the referenced image.
The <img> tag is empty, it contains attributes only, and does not have a closing tag.
The <img> tag has two required attributes:
src - Specifies the path to the image
alt - Specifies an alternate text for the image
Example
<img src="img_girl.jpg" alt="Girl in a jacket">
Answered by
8
<html>
<head></head>
<body>
<img src="image.jpg" alt="Image-file">
</body>
</html>
Similar questions
Science,
3 months ago
Computer Science,
3 months ago
English,
3 months ago
Physics,
6 months ago
Math,
6 months ago
Political Science,
11 months ago