Apply CSS to html INPUT control based on type attribute – Programming Code Examples
CSS

Apply CSS to html INPUT control based on type attribute1 min read

If you want to add common look to all control in you website then you generally specify css for that element in your style sheet. Doing this will apply same look and feel to all element of that particular category. For example for input element you can add in CSS like

But there are different types under input element like text, button, checkbox, submit, password etc. Apply CSS to input element will be reflected of all the types of the input. To control this we can specify the type attribute in CSS.

Use attribute selectors to style elements

 

Leave a Comment