Compare these two sentences:
„Nicht alle Kurse sind online.“ = Not all courses are online.
„Keiner der Kurse ist online.“ = None of the courses is online.
Imagine a school offers five courses. Three are online and two take place in a classroom. The first sentence fits that situation. The second does not.
The useful reading habit is to notice what is being denied. „Nicht alle“ rejects the claim about the whole group. It does not tell you an exact number. „Keiner der Kurse“ says the number of online courses is zero.
A quick check with your own examples: write one sentence for a timetable with two online courses out of five, then another for a timetable with zero online courses. Keep the noun and verb the same so the difference stays visible.
For the grammar behind this, IDS explains negation and quantification here:
https://grammis.ids-mannheim.de/systematische-grammatik/6357