Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy Login Form</title> <base href="../try-it/"> <link rel="stylesheet" type="text/css" href="login-style.css"> </head> <body> <form class="form container" onsubmit="alert('Submitted!');return false;"> <h2>HTML5 Login Form</h2> <label><b>Username</b></label> <input type="text" name="uname" required> <label><b>Password</b></label> <input type="password" name="psw" required> <button type="submit">Login</button> </form> </body> </html>
Result