CSS attribute selector to select element by type - HTML CSS CSS

HTML CSS examples for CSS:Selector

Description

CSS attribute selector to select element by type

Demo Code

ResultView the demo in separate window

<!doctype html>
<html>
 <head> 
  <title>Lorem ipsum dol</title> 
  <style type="text/css">
[type="button"] {
   display:block;
}
</style> <!--from   w w  w. j  a v a  2s .  co  m-->
 </head> 
 <body> 
  <input type="button" value="Button 1"> 
  <input type="button" value="Button 2"> 
  <input type="button" value="Button 3">  
 </body>
</html>

Related Tutorials