HTML - change the text color in a text box

December 2016

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 :

This document entitled « HTML - change the text color in a text box » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.