Ask coding questions

← Back to all posts
Buttons styles in HTML
FranklinStopar (17)

How do i stylize buttons in different ways...like when you hover over it with your mouse....

Answered by LordSpice (6) [earned 5 cycles]
View Answer
Comments
hotnewtop
LordSpice (6)

You will have to use CSS or JavaScript to stylize buttons.
I think CSS is simpler though.

To style a button in CSS, give it some class, say for example: colordbtn.
Create a CSS file and write the following
.colordbtn : hover {
color: red
}

Check out W3Schools for more information. It is a very helpful site.