Add a class to a tab