如何提示密码管理器输入用户名和密码?



我有一个用于注册用户的html表单,我应该输入什么属性来提示密码管理器(google/lastpass/onepass/etc(电子邮件地址将在提交时用作用户名?

<form>
<input type='text' placeholder='email address'><br>
<input type='text' placeholder='first name'><br>
<input type='text' placeholder='last name'><br>
<input type='text' placeholder='postcode'><br>
<input type='password' placeholder='password'><br>
<input type='password' placeholder='password again'><br>
<button type='submit'>register</button>
</form>

大多数密码管理器都使用name属性来实现此目的。

无论如何,您都需要提供一个,以便控件可以成功并将数据提交到服务器。

最新更新