<!DOCTYPE html> <html> <body> <p>See in the url after submitting, input elements outside the form still belong to form due to 'form' attribute. </p> <form action="files/required.php" method="post"> Name:<input type="text" name="fullname"> Email: <input type="email" name="user-email" required> <input type="submit" name="submit"> </form> </body> </html>
Run
×
Share