Explain how images can be added into an HTML document by giving suitable example.
Answers
Answered by
10
The <img> tag is used to add images in HTML.
Example:
<html>
<body>
This is an image
<p>
<img src="brainly.jpg" alt="brainly" width="100px" height="100px" >
<!--if the image is in same folder-->
</p>
</body>
</html>
We will use <img src= folder/img.jpg> if image is in different folder which is named as "folder"
Similar questions