Line outs take place when the ball goes into touch, meaning it crosses the sideline. The ball is in touch only if it goes to ground or the player in possession of the ball is touching the sideline or is outside the playing area.
Line out in Rugby 15s
Line out in Rugby 7s
DOs and DONTs of the line out