Validate HTML Form

The Web Book

User ID: Password:

HTML Form Validation Example Code

<!DOCTYPE html> <html> <body> <form action="abc.php"> User ID: <input type="text" name="userid" required="vital" placeholder="me@example.com"/> Password: <input type="password" name="password" required="vital" /> <input type="submit" value="Submit" /> </form> </body> </html> Back