Which of the items below is the way in which major political parties formally select nominees for the presidential election? Please choose the most correct answer.

A: Partisan elections
B: The national convention
C: The Electoral College
D: Nonpartisan elections

B: The national convention