So, basically, when we talk about canon we are either talking about the events that transpired in the original works by Sir Arthur Conan Doyle, or the events that have actually transpired in the show.
For example, because Sherlock and Mycroft's parents were only hinted at in previous seasons, fans made certain speculations about them, i.e., that they were rich and aristocratic. But this was only conjecture, as it had not been made canon on the show.
However, this season, we learned that they are actually very ordinary people. THAT is canon.
Sometimes sources outside the show (i.e., comic book spin-offs, or, in the case of Sherlock, John's blog) can be accepted into canon if the show runners state it to be so.
Hey!
Thank you so much! I must congratulate you on how well you explained that for me! I was reading the original definition and was slightly bemused, but thank you to your excellent explanation It all makes perfect sense to me )