These are the posts that I keep handy that give excellent explanations:
[webmasterworld.com...]
[webmasterworld.com...]
[webmasterworld.com...]
[webmasterworld.com...]
At least one of these posts and a little trial and error and you'll have it down in short order. It used to be a big mystery to me too. Just got finished entering a bunch just now.
patient2all