<!DOCTYPE html> <html> <body> <h1>The button autofocus attribute</h1> <button type="button" autofocus onclick="alert('Hello world!')">Click Me!</button> </body> </html>