Styling Forms
14.3
Lesson

Selecting input by type

If we use the input selector for styling, the changes will apply to all types of inputs including text input fields, radio buttons, checkboxes, button input types, etc. Look at the example given below:

To style each type of input differently, we can select these elements using the attribute selector:

input[type="value"]