HTML:- image tag

<!DOCTYPE html>
<html>

<head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Images</title>
</head>

<body>

 <img src="TestImage/images.jpg" width="100" height="100">
 <img src="errorimg.jpg" alt="Sample Image" width="100" height="100">

</body>

</html>



Output:- Sample Image
Definition:-

Img tag


  • This tag defines an image in an HTML page.
  • Tag has one required attribute src
  • Images are not technically inserted into an HTML page, images are linked to HTML pages.
HTML:- image tag HTML:- image tag Reviewed by Network security on April 30, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.