Look
Carbon has 4 outer electrons. It can't easily gain four more or lose all four, so it shares them. In methane, each of carbon's electrons (dots) pairs up with one from a hydrogen (crosses).