Short answer
No. The Royal Tank Regiment is an armored regiment, not a cavalry regiment. It is part of the Royal Armoured Corps, though, and that corps does include regiments with cavalry history. This is why the question comes up so often.
What cavalry means
Cavalry, in the British Army’s usage, refers to troops who fought mounted on horses and carried the traditions of that role. Cavalry regiments have long names, badges and customs that go back to horse warfare. The term is about lineage and the way a unit was formed, as well as the way it fights.
Where tanks came from
Tanks did not grow out of the cavalry. In 1916 the Heavy Section of the Machine Gun Corps was formed to crew the first tanks, and in 1917 the tank units became the Tank Corps, a separate arm of the army. Its crews came from many backgrounds, and its early tradition was built around machines rather than horses.
Tanks were sometimes compared with cavalry because both could move fast across open ground and both were used to exploit a breakthrough. That comparison is a useful way to think about the role, but it does not make the Royal Tank Regiment a cavalry regiment.
Shared ground in the Royal Armoured Corps
After 1939, the Royal Armoured Corps brought together tank regiments and the cavalry regiments that had converted to armor. Converted cavalry units came to use the same kinds of armored vehicles and took on roles alongside the tank regiments within the corps.
So the Royal Tank Regiment and the cavalry regiments are related through the Royal Armoured Corps, but they do not share the same origins. If you are asking which is which, the Royal Tank Regiment is the armored one, and its name says so.
Why the question comes up
The question often comes from the two terms being used for similar roles. Both kinds of unit operate armored vehicles, scout ahead of other troops and take part in fast-moving operations. Modern armored units also carry cavalry-style names in some cases, which adds to the confusion.
If you want to be sure about a particular regiment, check its official history or the regiment’s own published account. Those will set out its formation and lineage in detail.