0

How can I make a coloured box and write in the box in html ?

12th Aug 2022, 3:24 PM
Sanju Agrawal
Sanju Agrawal - avatar
2 Answers
+ 3
I don't know if you mean an input field or a textarea, but you can do it like this: <input style="background-color:red;"> or a textarea: <textarea style="background-color:red;"></textarea> both of them will have a red background... you can replace the red with a color word of your choice or use RGB, RGBA or Hex.
12th Aug 2022, 3:38 PM
Leander
Leander - avatar
0
You can put an image.
12th Aug 2022, 4:01 PM
Ghg8
Ghg8 - avatar