HTML - change the text color in a text box

February 2017

Issue


I wanted to know how to change the color of text entered in a text box?
The input field:
<input type='text' name='nofacture' size=6 maxlength=7> 

I want to have the text in blue.

Solution


Simply use:
<input type='text' name='nofacture' STYLE='color=#FFFF00' size=6 maxlength=7>

Related


Published by aakai1056. Latest update on October 25, 2011 at 09:50 AM by aakai1056.
This document, titled "HTML - change the text color in a text box," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).