Implement tag inheritance.