+ 1

How to add different background and border colour in a same text area?

18th Aug 2018, 2:13 AM
Aditya Raj
Aditya Raj - avatar
6 Respostas
+ 9
In HTML ~ <textarea>Your text here </textarea> In CSS ~ textarea{ background-color : red; border : 2px solid green; } Of course you can use any color or border width/style..
18th Aug 2018, 2:36 AM
Nikhil
Nikhil - avatar
18th Aug 2018, 2:59 AM
Calviղ
Calviղ - avatar
+ 3
HTML not for styling. You should use CSS
18th Aug 2018, 3:15 AM
Calviղ
Calviղ - avatar
+ 1
thank for this! but i want to set different background and border colour of textarea in HTML
18th Aug 2018, 2:52 AM
Aditya Raj
Aditya Raj - avatar
+ 1
you have used css but i want to do this in HTML.
18th Aug 2018, 3:03 AM
Aditya Raj
Aditya Raj - avatar
+ 1
ok
18th Aug 2018, 3:27 AM
Aditya Raj
Aditya Raj - avatar