Answers for "button in button html"

22

how to create a button in html

<button onclick="window.location.href='/page2'">Continue</button>
Posted by: Guest on June-08-2020
10

html button

<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>
Posted by: Guest on March-01-2020
3

html button

<form action="https://google.com">
    <input type="submit" value="Go to Google" />
</form>
Posted by: Guest on April-02-2021
0

Html page button

<html>
  <head>
    <title>Button page</title>
  </head>
  
  <body>
    <button onclick = "myfunction()">button</button>
    
    <script>
      function myfunction() {
        location.replace("Your site adress here");
      }
    </script>
    
  </body>
</html>
Posted by: Guest on October-29-2021

Browse Popular Code Answers by Language