This is utterly meant to entertain all audiences. They also often make fun of themselves or of fox (their production company). Traditionally, a cartoon is meant for kids but the Simpsons is targeted towards adults and has a lot of more sophisticated jokes. However, on the other hand they have a lot of slapstick humor where in almost every episode homer will fall of a cliff or sometimes things even more physical comedy.