You can think of someone trying to hammer a nail into a board. They hit the nail so perfectly that the nail goes straight into the board very well. If you scored 100% on an exam, you "nailed it". It could also mean something bad: suppose you hit and crushed a mailbox with your car. You "nailed" the mailbox. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.