how to add both color and font style in one line in paragraph? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to add both color and font style in one line in paragraph?

please answer my question

24th Oct 2016, 5:28 PM
Haris Rafique
Haris Rafique - avatar
6 Answers
+ 3
I think you can write tow many times a tag
26th Oct 2016, 6:18 PM
Esther Anna
Esther Anna - avatar
+ 3
the correct answer of this question is <p style="color:red; font-family:courier;> </p>
28th Oct 2016, 5:44 AM
Haris Rafique
Haris Rafique - avatar
+ 2
You can do it like this: <p style="font-family:arial;">Hello World.</p> <font color="red">This is some text!</font>
24th Oct 2016, 6:13 PM
Elias Papachristos
Elias Papachristos - avatar
+ 2
Or you can use css
28th Oct 2016, 5:39 AM
Samantha Isbell
Samantha Isbell  - avatar
0
you can also use bothb styles in the style tag like this: <p style="font-family:Helvetica; color:red:">This is some text</p>
25th Oct 2016, 4:26 PM
Jakob Bosworth
Jakob Bosworth - avatar
- 2
<body text="red">
26th Oct 2016, 2:32 PM
Farid Halmad
Farid Halmad - avatar