A button code example

Example 1: href on a button

<button onclick="window.location.href='/page2'">Continue</button>

Example 2: buton html href

<!-- if you are on Window : --> 
<button onclick="window.location.href='page2.html'">
  Button
</button>

<!-- if you are on linux or macOS : -->
<button onclick="location.href='page2.html'">
  Button
</button>

Example 3: how to add buttons in html

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

Example 4: button

<androidx.appcompat.widget.AppCompatButton
        android:text="ok"
        android:id="@+id/appcompatbutton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:layout_marginTop="150dp"/>

Example 5: button

<a href="#" class="myButton">Search</a>

.myButton {
	background:linear-gradient(to bottom, #8ca0c2 5%, #476e9e 100%);
	background-color:#8ca0c2;
	border-radius:13px;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Times New Roman;
	font-size:16px;
	font-weight:bold;
	padding:10px 15px;
	text-decoration:none;
	&:hover {
	background:linear-gradient(to bottom, #476e9e 5%, #8ca0c2 100%);
	background-color:#476e9e;
}
 &:active {
	position:relative;
	top:1px;
}
 }

Example 6: button

<androidx.appcompat.widget.AppCompatButton