In this example, we use the DOM method getElementsByClassName() to return all previous sibling elements between the li element with class name "start" and the li element with class name "stop".