Problem Statement
Create a registration form with inputs for name, email, password, gender, and submit button using HTML5.
Explanation
Forms collect user input. HTML5 introduces input types like email, password, and radio. Use labels for accessibility and proper structure.
Code Solution
SolutionRead Only
<form> <label>Name:</label><input type="text" required><br> <label>Email:</label><input type="email" required><br> <label>Password:</label><input type="password" required><br> <label>Gender:</label> <input type="radio" name="gender">Male <input type="radio" name="gender">Female<br> <button>Register</button> </form>
Practice Sets
This question appears in the following practice sets:
