Is it legal to tax candy in California?

Tax can be put on anything. It is really not up to the store or market owner as much as it is to the government.