Check out example codes for "how to make a button in html". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

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

Code Example 3

          .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;
      <a href="<url>" class="button">ButtonText</a>

Code Example 4

    <button onclick = "myfunction()">button</button>
      function myfunction() {
        console.log("This is a working button");

Code Example 5


Code Example 6

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

Learn ReactJs, React Native from