Adding Buttons In Html Code Example


Example 1: how to add buttons in html

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

Example 2: 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>

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable