Beyond a cat’s propensity to vomit to get rid of a hairball or some grass, there are a multitude of reasons for it and people should not try and self-diagnose in truth. It can be dangerous to try. Please see a veterinarian.
Please search using the search box at the top of the site. You are bound to find what you are looking for.