Images can improve the design and the appearance of a web page.
Syntax :
<!DOCTYPE html>
<html>
<body>
<h2>HTML Image</h2>
<img src="xyz.jpg" alt="xyz" width="500" height="333">
</body>
</html>
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
0 Comments