+ 4

how can i customize font color as well as background color in one paragraph at a time in HTML5?

26th May 2019, 9:19 AM
raj shah
raj shah - avatar
7 Antworten
+ 4
<p style="color: red; background: green;">Hello</p>
26th May 2019, 10:06 AM
Ferry
Ferry - avatar
+ 5
<p style="color: red; background: green;">Hello</p>
26th May 2019, 9:29 AM
Calviղ
Calviղ - avatar
+ 4
You need CSS to do that : p{ background-color:blue; font-color:yellow; } Thanks
26th May 2019, 9:21 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 4
Use css. #para1{ background-color : pink; color: red; } para1 is the id of the paragraph.
26th May 2019, 8:33 PM
Gayani Abeykoon
Gayani Abeykoon - avatar
+ 3
p{ background:red; color:blue; }
29th May 2019, 7:20 AM
Sachin Rathore
Sachin Rathore - avatar
+ 2
raj shah It's just ridiculous to see you mark a copy and paste answer Ferry as best answer.
29th May 2019, 7:28 AM
Calviղ
Calviղ - avatar
+ 1
P{ Color : #fffff; Background : #00000; }
27th May 2019, 5:50 PM
Karanam Kondapanaidu
Karanam Kondapanaidu - avatar