Using pattern atribute in HTML5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Using pattern atribute in HTML5

When using the input tag in a form and requesting a password, how can I make the password requirements such as using 1 upper, 1 number, 1 special character and such... I read about the pattern attribute, but I'm still scratching my head over how to write it properly. Any useful link or guide for that?

24th Aug 2018, 10:31 PM
Paris Sánchez
Paris Sánchez - avatar
2 Answers
+ 2
for pattern attribute or any other html css js functions/attributes w3schools is (in my opinion) the best to help you https://www.w3schools.com/tags/att_input_pattern.asp
24th Aug 2018, 10:57 PM
Roel
Roel - avatar
+ 1
great, this actually helped, Thank you Roel
24th Aug 2018, 11:52 PM
Paris Sánchez
Paris Sánchez - avatar