An attacking player is declared offside, if he is on a position that is, unlawfully, ahead of the ball when it is played.
This position lies within one’s opponents’ half or we can say the attacking zone.