Learn HTML DOM
Selecting DOM Elements
3.2 - Ex 2
Exercise

Using Tag Name

In the example given below, change the background colour of all the div elements to be teal. Then, change the background colour of the eighth div element to be olive. For selecting the div elements, only use getElementsByTagName.