HTML Input tag types

  1. When we specify the type as password in the input field, black circles are shown in place of the text. Can we modify it to show something like * (asterisk) instead of black circles?

  2. When we specify the type as number in the input field, we get a toggler to increase and decrease the number value. It shows red border if we input anything other than numbers. Can we also put a restriction on the range of numbers that are acceptable in this field?

For the password field doubt, give a read to this,


and for the restrictions you can use regex for that. Regex helps you to put restrictions on number, email or any combination of characters you want.
https://www.w3schools.com/tags/att_input_pattern.asp