I would use the css class:
<input class="user-input"> <input type='text' class="user-input"> <textarea class="user-input"> <input type='password' class="user-input">
And then you will use a style based on this class. Although this may not be as automatic as you want it, it provides you the most control and allows you, for example, to avoid styling submit buttons.
You can also do the reverse, of course, and have a "non-user-input" class, which will then be placed in things like a submit button. Then you press <input> , <textarea> , etc.
This may be more suitable for your needs.
source share