How do I change the style of an HTML form button?

Answered

How do I change the style of an HTML form button?

Trainee Asked on June 8, 2018 in HTML.
Add Comment
1 Answer(s)
Best answer
<!DOCTYPE html>

<html>

<head>

<style>

.button {

background-color: #f44336;

border: none;

color: white;

padding: 15px 32px;

text-align: center;

text-decoration: none;

display: inline-block;

font-size: 16px;

margin: 4px 2px;

cursor: pointer;

}

</style>

</head>

<body>
<h2>HTML Buttons</h2>
<button>Default Button</button>

<a href="#" class="button">CLICK HERE</a>

<button class="button">CLICK ME</button>

<input type="button" class="button" value="CLICK ME">
</body>

</html>
Team Leader Answered on November 4, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.