button tag in html
snippet in html

create buttons html

user3578

<button type="button" onclick="alert('You pressed the button!')">Click me!</button>

how to create a button with text in HTML5?

user8841

<button type="button">Click Me!</button>

html button

user9742

<html>
  <head>
    <title>Buttons</title>
  </head>
  
  <body>
    <button onclick = "myfunction()">button</button>
    
    <script>
      function myfunction() {
        console.log("This is a working button");
      }
    </script>
    
  </body>
</html>

how to make a button in html

user6868

<button>I'm a button</button>

html button

user2536

<html>
  <head>
        <style>
          .button {
 			background-color: <background color>;
  			border: none;
 			color: <text color>;
  			padding: 10px 25px;
  			text-align: center;
 			text-decoration: none;
  			display: inline-block;
  			font-size: 16px;
  			margin: 4px 4px;
  			cursor: pointer;
  			border-radius: 8px;
			}
  		</style>
	</head>
	<body>
      <a href="<url>" class="button">ButtonText</a>
 	</body>
</html>

button tag in html

user7283


    <button type="button">Click Me!</button>