If you are over 35 (and sedentary), I'd really recommend reading "The Barbell Prescription" https://www.amazon.com/Barbell-Prescription-Strength-Trainin... — it will be a much better guide than most advice available online, which seems to be directed at youngsters.
If you are in your fifties, read both Starting Strength and The Barbell Prescription [2].
[1] https://www.amazon.com/Starting-Strength-Basic-Barbell-Train... [2] https://www.amazon.com/Barbell-Prescription-Strength-Trainin...