Difference between 1,$ and /g

just wondering what the difference is between 1,$ and /g when doing a substitution in vi. doesn't seem to be much difference from what i can see.

Hi.

1,$ means every line (1 being the first, $ being the last). /g means every occurrence within a line (simply put).

ooh thanks