+ 4

How do i create Multi-color text in html?

6th Jul 2020, 8:12 PM
Johar Khan
Johar Khan - avatar
5 Answers
+ 4
<span style="font-family: tahoma"> <span style="color: red">U</span> <span style="color: blue">s</span> <span style="color: red">e</span> <span style="color: blue">r</span> <span style="color: red">n</span> <span style="color: blue">a</span> <span style="color: red">m</span> <span style="color: blue">e</span> </span>
7th Jul 2020, 4:35 AM
Sherzodbek Rahmatov
Sherzodbek Rahmatov - avatar
+ 1
Sajid thanx man. Appreciate that.
6th Jul 2020, 8:31 PM
Johar Khan
Johar Khan - avatar
0
You need to put each letter separately in a span tag and then color the span elements. Ex- <span style="color:#FF0000">H</span> <span style="color:#66CC66">e</span> <span style="color:#FF9966">l</span> <span style="color:#FFCCCC">l</span> <span style="color:#FF0066">o</span> Another way is to use an image. Ex - <img src="multicolortext.png"/>
6th Jul 2020, 8:27 PM
Sajid
Sajid - avatar
0
LIFE DO GIVE SECOND CHANCE :) your welcome 😊
6th Jul 2020, 8:32 PM
Sajid
Sajid - avatar
0
write each letter you wish to change the color in a span tag and specify the color you want.
7th Jul 2020, 3:42 PM
Tandoh Achiever Teneng
Tandoh Achiever Teneng - avatar