<button>

Description

<button> performs a similar function to the <input type="submit"> and <input type="button"> elements. <button> provides richer rendering capabilities.


<button> . . . </button>

Example


<html>
<body>
          <button type="button" id="myButton">
             This is the button's label<!--  w  w  w. j a v a  2  s  . c  o  m-->
          </button>

</body>
</html>

Click to view the demo

The code above generates the following result.

button




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference