Как изменить цвет innerhtml
document.getElementById("usernameError").innerHTML = "<span style='color: red;'>
this.style.color = "white";
Upset Unicorn
document.getElementById("usernameError").innerHTML = "<span style='color: red;'>
this.style.color = "white";