WhAT is the speedometer cable attached to?

It depends on the manufacturer. Most rear wheel drive vehicle speedometer cables connect to a gear in the transmission "tailshaft". Front wheel drive vehicles may connect at another location on the transaxle or they may use an electronic Vehicle Speed Sensor (VSS) that sends a digital signal to the speedometer, in which case there is no speedometer cable. Other vehicles, such as the old VW Beetle, used a speedometer cable that connected directly to the front wheel. Unfortunately, there is no way to list what method was used by all vehicles.