For your example, you would first select your item, and then change its style:
myitem = document.getElementById("itemColor") // searches in all children and grandhildren of document
myitem.style.color = "blue";
You can do the same for the elements in getElementsByClassName
and getElementsByTagName
, which are HTML collections.
With the following, you can override all elements' properties having said class.
myitems = document.getElementsByClassName("itemColor") // HTMLCollection
[].forEach.call(myitems, function(subitem){
subitem.style.color = "blue";
}
);
console.log(myitem.style)
to see all attributes you can change.