Categories and attributes are connected together where you define the category and attach the attributes if needed for that category so that they can be used…