use picture tag to change image in html code example
Example 1: how do you code an image in html
<!DOCTYPE html>
<html>
<head>
<title>HTML img Tag</title>
</head>
<body>
<img src="/html/images/test.png" alt="Simply Easy Learning" width="200"
height="80">
</body>
</html>
Example 2: picture html
<picture>
<source srcset="mdn-logo-wide.png" media="(min-width: 600px)">
<img src="mdn-logo-narrow.png" alt="MDN">
</picture>