+ 4
how can i customize font color as well as background color in one paragraph at a time in HTML5?
7 odpowiedzi
+ 4
<p style="color: red; background: green;">Hello</p>
+ 5
<p style="color: red; background: green;">Hello</p>
+ 4
You need CSS to do that :
p{
background-color:blue;
font-color:yellow;
}
Thanks
+ 4
Use css.
#para1{
background-color : pink;
color: red;
}
para1 is the id of the paragraph.
+ 3
p{
background:red;
color:blue;
}
+ 1
P{
Color : #fffff;
Background : #00000;
}