<!DOCTYPE html> <html> <body> <p>form attribute in the input element associates it with the form</p> <p> Email: <input type="email" name="cemail" form="cform"></p> <form action="files/form.php" method="post" id="cform"> Candidate name: <input type="text" name="cname"> Password: <input type="password" name="pass"> <input type="submit" name="submit"> </form> </body> <html>
Run
×
Share