The dotted line is called the crease line, and it is used to indicate the area behind the goal where the goalkeeper can stand.