Password validation W3Schools code example Example: html add password <input type="password" name="password">