Yes, it does. The function that you are using to get elements is the getElementsByClassName. If you noticed its get ELEMENTS with an s that means it expects more than one elements to have the same class names. That just means that the method will always return an array. So to access the element you have to access it like an array.