When parking your vehicle uphill on a road with a curb:

When parking your vehicle uphill on a road with a curb, bring the vehicle to a stop within 12 inches of the curb. Turn the steering wheel sharply away from the curb. If your brakes fail and your vehicle starts to roll backward, it will roll away from traffic.
DMV Writen Test