consider the following
<div id="logo">tra¢r</div>
All I want is to give random colors to each letter of the word.
One approach I thought is to have
<div id="logo">tra¢r
<span class="t">t
<span class="r">r
<span class="a">a
<span class="c">¢
<span class="r">r
</div>
and color each letter as
.t {
color: black
}
.r {
color: black
}
.a {
color: pink
}
.c {
color: blue
}
.r {
color: yellow
}
Is there a better way?