Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> input { padding: 10px; margin: 5px; width: 90%; } .one { color: #8ebf42; } .two { color: #ff0066; } .three { color: #1c87c9; } .one::placeholder { color: #1c87c9; } .two::placeholder { color: #ff0000; } .three::placeholder { color: #8ebf42; } input:placeholder-shown { border: 1px solid #095484; </style> </head> <body> <form action="/action_page.php"> Prénom: <input class="one" type="text" name="firstname" placeholder="John"><br><br> Nom: <input class="two" type="text" name="lastname" placeholder="Lennon"><br><br> Adresse éléctronique: <input class="three" type="email" name="email" placeholder="VotreEmail@gmail.com"> </form> </body> </html>