HTML <input type="password">

❮ HTML atribut typu <vstup>

Příklad

Definujte pole pro heslo (znaky jsou maskované):

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

Definice a použití

<input type="password">Definuje pole hesla (znaky jsou maskované) .

Poznámka: Veškeré formuláře obsahující citlivé informace, jako jsou hesla, by měly být poskytovány prostřednictvím protokolu HTTPS.

Tip: Vždy přidejte <label>značku pro nejlepší postupy usnadnění!


Podpora prohlížeče

Attribute
type="password" Yes Yes Yes Yes Yes

Syntax

<input type="password">

❮ HTML atribut typu <vstup>