Autofocus button in Html

Button

Button can be created as "input type" and simply in "button" tag


Example:

<!DOCTYPE html>
<html>
<head>
<title>Button</title>
</head>

<body>
<button>Test button</button>
<button autofocus="true">Test button Focused</button>
</body>
</html>

Output of this code will look like this: