Forms | HTML: Forms are using to get the data from user. The data will be used in server side.
Here is the forms.html:
- <!DOCTYPE html>
- <html lang="en" dir="ltr">
- <head>
- <link rel="stylesheet" href="css/stylesheet.css">
- <meta charset="utf-8">
- <title>Forms</title>
- </head>
- <body>
- <p>Please Fill the Form</p>
- <form class="form" action="submit.html" method="post">
- <label for="fname">First Name:</label><br>
- <input type="text" id="fname" name="fname"><br><br>
- <label for="lname">Last Name:</label><br>
- <input type="text" id="lname" name="lname"><br><br>
- <input type="radio" id="male" name="gender" value="male">
- <label for="male">Male</label><br>
- <input type="radio" id="female" name="gender" value="female">
- <label for="female">Female</label><br>
- <input type="radio" id="other" name="gender" value="other">
- <label for="other">Other</label><br><br>
- <input type="submit" id="submit" value="Submit">
- </form>
- </body>
- </html>
Web view of Html:
Here is the Video: