Added required and placeholder attributes.

This commit is contained in:
Nicolás A. Ortega Froysa 2021-11-02 19:20:54 +01:00
parent fccb1bed22
commit f12d982a42

View File

@ -8,16 +8,16 @@
<h2>Sign-Up Form</h2> <h2>Sign-Up Form</h2>
<form> <form>
<label for="fname" >Name:</label> <label for="fname" >Name:</label>
<input type="text" name="fname" ><br /> <input type="text" name="fname" placeholder="John" required ><br />
<label for="fsurname" >Surname:</label> <label for="fsurname" >Surname:</label>
<input type="text" name="fsurname" ><br /> <input type="text" name="fsurname" placeholder="Smith" required ><br />
<label for="fbirthday" >Birthday:</label> <label for="fbirthday" >Birthday:</label>
<input type="date" name="fbirthday" ><br /> <input type="date" name="fbirthday" required ><br />
<label for="fdni" >DNI:</label> <label for="fdni" >DNI:</label>
<input type="text" name="fdni" pattern="[0-9]{8}[A-Z]" ><br /> <input type="text" name="fdni" pattern="[0-9]{8}[A-Z]" placeholder="12345678A" required ><br />
<label for="fsex" >Sex:</label><br /> <label for="fsex" >Sex:</label><br />
<input type="radio" id="male" name="fsex" value="Male" > <input type="radio" id="male" name="fsex" value="Male" required >
<label for="male" >Male</label><br /> <label for="male" >Male</label><br />
<input type="radio" id="female" name="fsex" value="Female" > <input type="radio" id="female" name="fsex" value="Female" >
<label for="female" >Female</label><br /> <label for="female" >Female</label><br />