I think your teacher is a bit in the weeds with their web reference. The CSS Specification does include a "font-family" property with generic values of serif, sans-serif, cursive, fantasy and monospace. But font-family and type family (aka. typeface family or font family) are not nearly the same and has little to do with typography.
And I've never seen anyone use the cursive or fantasy values.