input type=password element

with label

with label + placeholder

with label + placeholder + required

with label + placeholder + readonly

with label + placeholder + disabled

Code

<label>code <input id="input1" type="password"></label>

Reference