Well, I am trying my best:
var element = document.getElementsByClassName("tab active");
var child = element.firstElementChild;
child.style.color = '#ffffff';
child.style.backgroundColor = '#004831';
<li class="tab active">
<a href="#">
Annual Report
</a>
</li>
This link same as above: https://jsfiddle.net/zxcc0rce/3/
Still not working, is there something missing?
Thanks in advance