How to create a form in html with an image in background ?

Published: June 12, 2019

DMCA.com Protection Status

Example of how to create a form in html with an image in background (the form position can be changed using the position parameters left: 100px; top: 250px; )

 How to create a form in html with an image in background ?
How to create a form in html with an image in background ?

<!DOCTYPE html>
<html>
<body>
<form style="position: relative;" method="GET" action="">
    <img src="Lenna.png"  />
    <div style="position: absolute; left: 100px; top: 250px;"> 
       <input type="text" placeholder="Texte..." /> <br><br>
       <input type="text" placeholder="Texte..."/> <br><br>
       <button type="submit">Go</button>
    </div>
</form>
</body>
</html>

References

Image

of