How to change the colour of the word? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to change the colour of the word?

we can use color =preferred colour for line and what is for word

3rd Aug 2016, 1:11 AM
shashanth
shashanth - avatar
6 Answers
+ 4
CSS: <p style="color:blue;">Blue</p>
3rd Aug 2016, 4:10 AM
freshnewname
freshnewname - avatar
+ 2
ok tks bro
3rd Aug 2016, 2:54 PM
shashanth
shashanth - avatar
+ 2
OR...... For whole text, inside body tag: text="red" , inside style tag: color : red ;
5th Aug 2016, 1:06 AM
Daliah Aljutayli-داليه الجطيلي
Daliah Aljutayli-داليه الجطيلي - avatar
+ 1
<font color="colour name"> <P>....... </P> </FONT>
4th Aug 2016, 5:46 AM
Abhinav Singh
Abhinav Singh - avatar
+ 1
For one word do like this : <p>This is a <span class="redText">red</span> word in a sentence</p> Use the span tag before and after ur WORD , then add inside style tag a class : .redText {color : red ;}
5th Aug 2016, 1:04 AM
Daliah Aljutayli-داليه الجطيلي
Daliah Aljutayli-داليه الجطيلي - avatar
0
uses the font tag
17th Jan 2017, 3:21 PM
snehal kamble
snehal kamble - avatar