How to add colour to button | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add colour to button

Html

11th Aug 2023, 2:01 PM
Mani Shankar v
Mani Shankar v - avatar
1 Answer
+ 5
Mani Shankarv - You can add color to button by using external css, internal css or inline css by property: 'background-color:' Example: <button style="background-color: red;"> submit</button> --------------------------------- Refere for more information: https://www.freecodecamp.org/news/css-button-style-hover-color-and-background/ https://www.includehelp.com/code-snippets/change-button-color-in-html.aspx
11th Aug 2023, 2:19 PM
Shree
Shree - avatar