+ 4
How to make a colored buttons on HTML ?
4 Respuestas
+ 8
Write this code
<button id="button">in html
In css
button{
background-color:color name;
color: color name;
}
Hope this will help you
+ 5
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
button {
background:red;
color:blue;
text-shadow:5px 4px 19px darkcyan;
}
</style>
<script>
function x() {
alert("Welcome");
}
</script>
</head>
<body>
<button onclick="x()">click</button>
</body>
</html>
+ 3
Harsh I know only HTML
Edit: Thanx Harsh, it worked well😊