Select input by button type and its class - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input button

Description

Select input by button type and its class

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials