How do you create multicolored text in a webpage? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

How do you create multicolored text in a webpage?

1st Mar 2017, 6:14 AM
Mallesh Techie
Mallesh Techie - avatar
6 Answers
+ 10
yes it correct @mallesh
2nd Mar 2017, 5:43 PM
Shehab Amr
Shehab Amr - avatar
+ 9
or any other ways ?
1st Mar 2017, 6:45 AM
Mallesh Techie
Mallesh Techie - avatar
+ 9
is it correct ? @shehab soliman
2nd Mar 2017, 12:05 AM
Mallesh Techie
Mallesh Techie - avatar
+ 8
This is example color: <p span style="red">your text</p>
1st Mar 2017, 7:45 PM
Shehab Amr
Shehab Amr - avatar
+ 6
you could separate your text in single letters and then put each in the <span> tag after that just give those spans classes ir id's and the give everyone different colors
1st Mar 2017, 6:18 AM
Kamil
Kamil - avatar
+ 4
@Mallesh Techie wrote: "is it correct ? @shehab soliman" ... after @SHEHAB SOLIMAN wrote: "<p span style="red">your text</p>" No, it isn't... you must at least write: '<span style="color:red;">' The only "other way" is to preformat your text with a script tool ( usually JS, but you can handle text with whatever programming/scripting language you want ) for simplify your task of putting one <span> element by letter ;)
2nd Mar 2017, 4:32 AM
visph
visph - avatar