HTML <input type = "password">

❮HTML<input>タイプ属性

パスワードフィールドを定義します(文字はマスクされます):

<label for="pwd">Password:</label>
<input type="password" id="pwd" name="pwd">

定義と使用法

<input type="password">パスワードフィールドを定義します(文字はマスクされます)。

注:パスワードなどの機密情報を含むフォームは、HTTPS経由で提供する必要があります。

ヒント:<label>アクセシビリティのベストプラクティスのために、常にタグを追加してください。


ブラウザのサポート

Attribute
type="password" Yes Yes Yes Yes Yes

構文

<input type="password">

❮HTML<input>タイプ属性