gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
Make simple html code to get personal details
- User
Make simple html code to get personal details
- Assistant
Certainly! Here's an example of a simple HTML form to collect personal details:
<!DOCTYPE html> <html> <head> <title>Personal Details Form</title> </head> <body> <h2>Personal Details</h2> <form> <label for="name">Name:</label> <input type="text" id="name" name="name" required> <label for="email">Email:</label> <input type="email" id="email" name="email" required> <label for="age">Age:</label> <input type="number" id="age" name="age" required> <label for="gender">Gender:</label> <select id="gender" name="gender" required> <option value="">Select</option> <option value="male">Male</option> <option value="female">Female</option> <option value="other">Other</option> </select> <br><br> <input type="submit" value="Submit"> </form> </body> </html>This code creates a simple HTML form with fields for name, email, age, and gender. The "required" attribute ensures that the fields cannot be left blank. The form is submitted using the
Submitbutton.