Automatically define the tag class.