I am currently working on a networked multiplayer game and my current method of writing out the list of players is to add the strings from an array to an empty using jQuery.

My code looks like this:

```
var html = '';
for (i = 0; i < data.length; i++){
    html += (i+1) + ". " + data[i] + '<br/>';
}
$players.html(html);

```

This all works but I want to set the colour of each string individually. As in, the first line would be black, then the second line would be red, then the third line would be blue, and so on.