You can remember the meaning of 上午 with this easy mnemonic:
I wake up (上) early morning but I usually don't eat anything until noon (午).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.