The placeholder Attribute same work as a value attribute but different between placeholder and value attribute is that when click the any text field then automatic remove the text when you are inserts the text if you are using the placeholder attribute but value attribute cannot remove automatic text before inserts the text. He placeholder attribute works with the following input types: text, search, url, tel, email, and password.
<form action=” page.php”>
<input type=”text” name=”Fname” placeholder=”First name”><br>
<input type=”text” name=”Lname” placeholder=”Last name”><br>
<input type=”submit” value=”Submit”>
Autocomplete attribute determines whether a form or input field ought to have autocomplete on or off. At the point when autocomplete is on, the program naturally totals the information values in light of qualities that the client has entered some time recently.
Tip: It is conceivable to have autocomplete “on” for the shape, and “off” for particular info fields, or the other way around.
The autocomplete attribute works with <form> and the accompanying <input> type: text, search, url, tel, email, password, datepickers, range, and color.
For example, like this demo first submitted all the data then reload the page than again enter the data name automatic show in name fields you can only select and enter the name because autocomplete attribute is on.
<form action=” page.php” autocomplete=”on”>
Name :<input type=”text” name=”name” autocomplete=”on”><br>
Age :<input type=”text” name=”age” autocomplete=”on”><br>
<input type=”submit” value=”Submit Query”>