The players or teams start on opposite sides of the net. One player is designated the server, and the opposing player is the receiver. The choice to be server or receiver in the first game and the choice of ends is decided by a coin toss before the warm-up starts. Service alternates game by game between the two players or teams. For each point, the server starts behind the baseline, between the center mark and the sideline. The receiver may start anywhere on their side of the net. When the receiver is ready, the server will serve, although the receiver must play to the pace of the server. For a service to be legal, the ball must travel over the net without touching it into the diagonally opposite service box. If the ball hits the net but lands in the service box, this is a let or net service, which is void, and the server retakes that serve. The player can serve any number of let services in a point and they are always treated as voids and not as faults. A fault is a serve that falls long or wide of the service box, or does not clear the net. There is also a “foot fault” when a player’s foot touches the baseline or an extension of the center mark before the ball is hit. If the second service, after a fault, is also a fault, the server double faults, and the receiver wins the point. However, if the serve is in, it is considered a legal service. A legal service starts a rally, in which the players alternate hitting the ball across the net. A legal return consists of a player hitting the ball so that it falls in the server’s court, before it has bounced twice or hit any fixtures except the net. A player or team cannot hit the ball twice in a row. The ball must travel over or round the net into the other players’ court. A ball that hits the net during a rally is considered a legal return as long as it crosses into the opposite side of the court. The first player or team to fail to make a legal return loses the point. The server then moves to the other side of the service line at the start of a new point.
source: wikipedia