0

what is the code to invalid the entering of "sign-in" without typing password?

<label><b>Password</b></label><br/> <input type="password" name="password" placeholder="Enter password"> <input type="submit" name="submit" value="Sign-in"> #HTML only

1st May 2020, 8:37 PM
Yamo
Yamo - avatar
1 Respuesta
+ 2
Give the input a required attribute <input type="password" name="password" placeholder="Enter password" required> https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required
1st May 2020, 8:41 PM
Ore
Ore - avatar