Double Question: How and/or when did tea become a staple of British/UK society? Is that still the cultural convention?

by XaloGunner

As an armchair historian, my educated guess is that it has to do largely with British influence and occupation in the Middle East, Far East, and India. But in an imperial society like Britain's was/is, how did a foreign "delicacy" became a staple of the nation doing the colonizing? How did tea become standard in the United Kingdom?

Consequently, in reference to the second question, I happened to be watching Series 2, Episode 2 of BBC's Sherlock and overheard several references to fixing coffee. In the U.S. at least, coffee is the typical drink and social convention. To what degree is coffee a staple in British society? Is it competing or replacing tea to any degree?

Searocksandtrees

Is that still the cultural convention? | To what degree is coffee a staple in British society? Is it competing or replacing tea to any degree?

Just a quick moderator reminder to anyone considering answering this part of the question: this subreddit is /r/AskHistorians and all answers are held to the standards documented in the rules. So, no personal anecdotes/opinions/guesses, and no answers covering events/conditions in the last 20 years: answers in this sub must be in-depth, and based on solid citable (preferably cited) source material. Thanks everyone!