Answers for "button hrml"

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
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