Contact Number
Email Address

button

button

Definition and Usage

The <button> tag defines a clickable button. Inside a <button> element you can put content.You can put content like text or image within the <button>........</button> tag. This is the difference between this element and buttons created with the <input> element.The HTML <button> tag is used for creating a button within HTML form. You can also use <input> tag to create similar buttons. Although this tag is often used in conjunction with the <form> element, it can also be used as a standalone control. The <button> element is used to create an HTML button. Any text appearing between the opening and closing tags will appear as text on the button. No action takes place by default when a button is clicked. Actions must be added to buttons using JavaScript or by associating the button with a form. You should always specify the type attribute for a <button> tag. Different browsers use different default type for the button element. HTML Button tag can be used inside and outside the form. If you use it inside the form, it works as the submit button. You can also use it as reset button. If you use it outside the form, you can call JavaScript function on it.

Syntax

<button name="button" type="button">Click Here</button>