Ask coding questions

← Back to all posts
HELP
CactusDev

any one know how to do a button can change background color?
You Can Add a comment or
Join:
https://repl.it/join/gyjevoth-qerewrad
The HTML, CSS, JS lang

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
CactusDev
Comments
hotnewtop
Coder100

it's literally just ccss
https://repl.it/@Coder100/LazyOutlyingPoints-mark-as-correct-answer#style.css
do you need to take a tutorial?

CactusDev

@Coder100 Thanks
You are the Real Coder. Nice!!!!!

Bookie0

Check this out.

And maybe also this :)

CactusDev

@Bookie0 Nice Thanks Bro

Bookie0

np! :) @qerewrad

PrasannDubey

how do i change the button colour

CactusDev

@PrasannDubey
<button style="background-color:black; color:white;">my text color is white and i have black bg</button>

RYANTADIPARTHI

Solution

try using html, and css. It can do identifying. Like this.

like that.
That should work

programmeruser

In your HTML file:

And in your JS file:

CactusDev

@programmeruser
The Code Is Broken but thanks