HTML CSS examples for HTML Tag:input button
Select input by button type and its class
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> input[type="button"] { width:501px; background:red; } input[type="button"].button2 { width:100px; background:green; } </style> <!--from www . j a v a 2s .co m--> </head> <body> <input type="button"> <input type="button" class="button2"> </body> </html>