<!DOCTYPE html>
<html lang="en-US">
<body>
<form action="/user-name.php" autocomplete="on">
Name: <input type="text" name="name">
<button type="submit">Submit</button>
</form>
<p><strong>Note:</strong> Type your name and submit. Press Run button and Again type your first letter to see the <strong>autocomplete</strong> attribute's functionality</p> </body>
</html>