HTML <input type="password">

❮ Atrybut typu HTML <input>

Przykład

Zdefiniuj pole hasła (znaki są maskowane):

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

Definicja i użycie

<input type="password">Określa pole hasła (znaki są maskowane) .

Uwaga: wszelkie formularze zawierające poufne informacje, takie jak hasła, powinny być obsługiwane przez HTTPS.

Wskazówka: zawsze dodawaj <label>tag, aby uzyskać najlepsze praktyki ułatwień dostępu!


Obsługa przeglądarki

Attribute
type="password" Yes Yes Yes Yes Yes

Składnia

<input type="password">

❮ Atrybut typu HTML <input>