Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style>
input {
padding: 5px 10px;
}
::placeholder {
color: #1c87c9;
opacity: 1; /* Firefox */
}
:-webkit-input-placeholder {
/* Chrome, Safari, Opera */
color: #1c87c9;
}
::-ms-input-placeholder {
/* Microsoft Edge */
color: #1c87c9;
}
</style>
</head>
<body>
<form action="/form/submit" method="post">
First name:
<input type="text" name="firstname" placeholder="John">
<br>
<br> Last name:
<input type="text" name="lastname" placeholder="Lennon">
<br>
<br> Email address:
<input type="email" name="email" placeholder="YourEmail@gmail.com">
<br/>
<br/>
<input type="submit" value="Submit" />
</form>