Answers for "button codes for html"

31

how to create a button in html

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

html button

<!DOCTYPE html>
<html>
<head>
  <button class="Button">YOUR TEXT HERE</button>
  	<style>
      .Button {
        background-color: black;
        border: none;
        color: white;
        padding: 10px 25px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin: 4px 4px;
        cursor: pointer;
        border: 8px;
      }
     </style>
  </head>
</html>
Posted by: Guest on January-09-2022

Browse Popular Code Answers by Language