defending
If the defending team is the last to touch the ball before it crosses the goal line, but not into the goal, the attacking team is awarded a corner kick. The corner kick is taken from the corner arc nearest to where the ball went out, and it allows the attacking team to kick the ball into play from that position.
When the attacking team is the last to touch the ball before it crosses the goal line, but not into the goal, the defending team is awarded a goal kick. The goal kick is taken from within the six-yard box and allows the defending team to restart play by kicking the ball back into the field.