The actual Nikon F mount has been the same since 1959 but over the years has had a few additions which make newer cameras unable to accept the original ones.
The original Nikon F mount (so called 'pre-AI' lenses) lenses from 1959 - 1977 will not mount on most modern Nikon cameras and will cause damage. Some cameras such as the Nikon F4 can mount these as the coupling point for the meter prong used with AI/AI-S lenses can be moved out the way and some such as the F6 can be converted by Nikon to accept them.
The later AI and AI-S lenses add on an automatic indexing meter coupling prong (it is possible to convert pre-AI lenses to these standards) although with most modern Nikon's there will be no metering except on the professional cameras.
Afterwards were the autofocus lenses which are compatible with any Nikon provided the camera has a focus motor built in, if not the camera will only autofocus with AF-S lenses.