This is from wikipedia. Just look up Legend of Zelda (series) and it is under chronology.
Chronology
The precise chronology of the Zelda universe is hotly debated among fans, although some fans do not feel the games are definitively connected. As the series progressed, and more games were released, the exact order of the games in an overall timeline became complex and heavily disputed.
The Legend of Zelda: A Link to the Past is a prequel to the original NES games, and the back of the game's box states that Link is an ancestor of the Link from those games. The Nintendo 64 The Legend of Zelda: Ocarina of Time was also a prequel, going even further back and showing the origins of many things from the previous games. The Legend Of Zelda: The Wind Waker takes place hundreds of years after the events of Ocarina of Time.[2] The game explicitly references the "Hero of Time" from that game, and states that due to the hero's absence, it was necessary to flood Hyrule in order to stop Ganon. The Minish Cap, Four Swords and Four Swords Adventures reference other titles and are known to be a part of the timeline, but they follow a separate storyline, leaving their exact relationships with the other games uncertain.[3] It is not known how much time has passed in Hyrule between each of these games.
In an interview conducted by Nintendo Dream with Eiji Aonuma in December 2006, it was revealed that there are two parallel universes in the Zelda chronology. The timeline is split at the end of Ocarina of Time, when Link is sent back in time by Princess Zelda to live through his childhood, while the original events of OoT continue on a different path. Once returned to his original time, Link goes to see Zelda again, and the result of this meeting is an alternate future in which the villain Ganondorf is arrested and tried by the ancient sages, who attempt to execute him, but are instead forced to banish him to the Twilight Realm. Twilight Princess then occurs over one hundred years later, after Link's role as a child in the events of Ocarina of Time and Majora's Mask. Meanwhile, The Wind Waker occurs in the "adult Link" timeline, hundreds of years after the Hero of Time saved Hyrule in Ocarina of Time, and it is directly followed by Phantom Hourglass.[4][5]