The code for autofocus.html is: <!DOCTYPE html> <html lang="en"> <head> <title>Form examples</title> <meta charset="utf-8"> <link href="style.css" rel="stylesheet"> </head> <body> <h1>Form examples</h1> <fieldset> <legend>autofocue</legend> <form action="/action_page.php"> <label for="fname">First name:</label><br> <input type="text" id="fname" name="fname"><br> <label for="lname">Last name:</label><br> <input type="text" id="lname" name="lname" autofocus><br><br> <input type="submit" value="Submit"> </form> </fieldset> </body> </html>