Explain the rules, regs, protocols, etc. of saluting in the US armed forces

Don’t know how dated this is, but it should still be interesting.