Placeholders in HTML

The placeholder attribute specifies a short hint that describes the expected value of an input field. Example as :

<html>
    <head>
        <title> Placeholders in HTML</title>
    </head>
    <body>
        <form action="submit.php">
            <input type="text" name="fname" placeholder="First name">
            <br>
            <input type="text" name="lname" placeholder="Last name">
            <br>
            <input type="submit" value="Submit">
        </form>
    </body>
</html>

Output