In the last post, I shared my study note about five DOM methods of selecting the element. The next step will be manipulate those selected element. Remember the whole process is select an element and then manipulate. There are different ways of manipulation: changing an element's style adding/removing classes changing the content of a tag changing attribute. Style The style property is one way to manipulate an element's style. I will continue to use the previous HTML page as an example. var tag = document.getElementById("highlight"); //select tag.style.color = "blue" //manipulate tag.style.background = "pink"; //manipulate In the example, I select the ID element which corresponds to the first list item. I changed the text color and background by manipulating style in JavaScript. As you see, the text co...