Any plant with leaves, seeds, or flowers used for flavoring, food, medicine, or perfume is called herb. Origin of this word is latin word herba which means grass/green crops.
In general use, herbs are plants with savory or aromatic properties that are used for flavoring and garnishing food, in medicine, or as fragrances.