There is the other way that you don't have to apply the
disabled attribute to fields one by one.
Instead, you can use the
fieldset element to organize the input. Using the
disabled attribute to the
fieldset will disable all input belonging to it:
<input type="text" placeholder="Username" />
<input type="password" placeholder="Password" />