What is a mode of opening the game, in which a pawn is sacrificed to gain an attacking position called?

gambit — A mode of opening the game, in which a pawn is sacrificed to gain an attacking position. (Webster's 1913.)

Sources