A chord or melody is diatonic when every note comes from the parent scale. In C major, C–F–G–Am are all diatonic; F♯ major is not — its A♯ sits outside the C-major scale.
Every major key has the same seven diatonic chords (I ii iii IV V vi vii°). Knowing the pattern lets you transpose a progression to any key instantly.