BUTTON (<button>) Tag

by Jai 04-Jun-19

0 821

The <button> tag is used to create clickable buttons on the web page (HTML document). HTML Button tag can be used in both inside and outside of form. When this button is used in inside form, it works identical to submit button and when it is used in outside form then calling JavaScript function is mandatory.

One can use attributes like type="reset", type="button" and type="submit" while creating any button where, submit is used for submitting any form which is a default value, reset is used to reset form.

<button> </button> where content such as text or images can be integrated between start and end tag.


<!DOCTYPE html>
<title> Button Tag </title>
<h2> The Button Tag </h2>
<button name="button" type="button"> Click Me! </button>


BUTTON (<button>) Tag


Leave a Reply

    Waiting for your comments