In: Computer Science
Create in html5 a Website Registration Form with Optional Survey) Create a website registration form to obtain a user’s first name, last name and e-mail address. In addition, include an optional survey question that asks the user’s year in college (e.g, freshman,junior). Place the optional survey question in a details element that the user can expand to see the question.
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
<div>
<div>
<form action="action_page.php" method="get"
autocomplete="on">
<p> <label> First Name: <input type="text" >
</label> </p>
<p> <label> Last Name: <input type="text" >
</label> <br> </p>
<p> <label> Email: <input type="email" >
</label> <br> </p>
<p> <label> Year: <input list="year">
</p>
<datalist id="year">
<option value="Freshman">
<option value="Sophomore">
<option value="Junior">
<option value="Senior">
</datalist> </label>
<details> <summary>Optional Question:
</summary>
<label> What is your CGPA? <input type="number" step =
0.01min = 0.0 max =4> </label>
</details>
</form>
</div>
</div>
Kindly revert for any queries
Thanks.