Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu December 11, 2022 › #Button #color

How to set text color in submit button?

To set text color in submit button , you can use the CSS color property.

Syntax #

color:red

Suppose we have the following submit button and we want to change its text colour .

<style>
  input{
    color:green
  }
</style>
<input type="submit" value='Submit Form'>

You can give a class or id to the submit button to select it after.

If you have only one submit button, you can use the below selector to change the button's colour.

 input[type="submit"]{
    color:green
  }
save
listen
AI Answer
1 Answer
Write Your Answer
  1. You can try : the Inline styles <input style="color:#578768;background-color:#a975f4" type="submit">
    Reply Delete
    Share
loading
back
View All