A guardrail has a panel to provide protection in case of a fall. They are usually either 36" or 42" depending on your local codes, and are generally required when there is an elevation change of 30".
A handrail is just the part of the rail fixed at the top of posts, a requirement for stairs so that there is something to hold on to.