For cabin or carry on toiletries: airlines require that liquid products be no more than 3.4 ounces (100 milliliters) and all bottles must fit in a clear quart size zip lock bag when traveling with a carry on. Products that need to be inside the quart size zip lock bag are: liquids, aerosols, gels, creams and pastes. This is called the 3-1-1 Liquids Rule.
For checked toiletries: items that are in containers larger than 3.4 ounces or 100 milliliters (regardless of amount) should be in checked baggage. Visit this TSA page to find out exactly what items are allowed in a checked bag. It’s actually an interesting read!
These guidelines are for US-based airlines. However, these tend to be the general guidelines across all airlines. For specific items, always check the website of the airline or contact them and ask them directly.