Added required and placeholder attributes.
This commit is contained in:
parent
fccb1bed22
commit
f12d982a42
@ -8,16 +8,16 @@
|
||||
<h2>Sign-Up Form</h2>
|
||||
<form>
|
||||
<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>
|
||||
<input type="text" name="fsurname" ><br />
|
||||
<input type="text" name="fsurname" placeholder="Smith" required ><br />
|
||||
<label for="fbirthday" >Birthday:</label>
|
||||
<input type="date" name="fbirthday" ><br />
|
||||
<input type="date" name="fbirthday" required ><br />
|
||||
<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 />
|
||||
<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 />
|
||||
<input type="radio" id="female" name="fsex" value="Female" >
|
||||
<label for="female" >Female</label><br />
|
||||
|
Loading…
Reference in New Issue
Block a user