Xpath axes explained
TheĀ original article at explains it best.
If the original article goes missing I have copied it here as a web archive.
All kudos goes to the original author, not me.
The following picture from Crane Softwrights demonstrates the axes graphically.