Matched the class for each tag with the respective class in the list-item