how to add a rollover image in html

Solutions on MaxInterview for how to add a rollover image in html by the best coders in the world

showing results for - "how to add a rollover image in html"
Juan Sebastián
16 Oct 2020
1Tryit<!DOCTYPE html>
2<html>
3   <head>
4        <title> Wikitechy Rollover Image Effect in Html</title>
5         
6   </head>
7    <body>
8        <h2>Rollover Image Effect in Html</h2>
9        <img src="image1.png" onmouseover="this.src='image2.png'" onmouseout="this.src='image1.png'" />
10    </body>
11</html>