+ 4

How to make a colored buttons on HTML ?

10th Jul 2020, 12:25 PM
Anthony
Anthony - avatar
4 RĂ©ponses
+ 8
Write this code <button id="button">in html In css button{ background-color:color name; color: color name; } Hope this will help you
10th Jul 2020, 12:41 PM
Harsh
Harsh - avatar
+ 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>
21st Sep 2020, 11:58 AM
ᔘᔐᔉᔈ
ᔘᔐᔉᔈ - avatar
10th Jul 2020, 12:52 PM
CalviŐČ
CalviŐČ - avatar
+ 3
Harsh I know only HTML Edit: Thanx Harsh, it worked well😊
10th Jul 2020, 12:37 PM
Anthony
Anthony - avatar