Skip to content
Related Articles
Open in App
Not now

Related Articles

How to create a clickable button in HTML ?

Improve Article
Save Article
  • Last Updated : 18 Jun, 2020
Improve Article
Save Article

In this article, we will create a Button by using the <Button> Element in the Document.
It is used to submit the content. The images and text content can use inside a button tag.


<button type = "button">

Example: Using HTML <button> type Attribute

<!DOCTYPE html> 
            How to create a clickable button?
            HTML: How to create a clickable button?
        <!-- button tag starts from here -->
        <button type = "button" onclick
            "alert('Welcome to GeeksforGeeks')"
            Click Here 
        <!-- button tag ends here -->


Supported Browsers are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!