
Platform reefs usually lie in sheltered seas and quite far offshore. They are flat-topped with small and very shallow lagoons.
Barrier reef
A coral reef growing parallel to the coastline and separated from it by a lagoon is called a barrier reef. The lagoon may develop between the fringing reef and the land. As the reef continues to grow further and further offshore it eventually reaches the edge of the continental shelf. Barrier reefs can also originate offshore if the depth of the seabed out there is shallow enough to allow corals to grow.
The most famous barrier reef is the Great Barrier Reef in Australia. It stretches over 2300 km and covers over 200'000 km2. It lies between 24 and 240 km from the main continent.
Atoll
Atolls are rings of reef, often encircling an island (sand and coral rubble). They typically have a shallow, sandy, sheltered lagoon in the middle. Access to the open sea beyond is through a number of channels. These provide fresh and colder water for the lagoons. Corals atolls are on the top of submarine mountains. These mountains are remnants of volcanos. Once there were fringing reefs around the volcano. As it slowly submerged the corals continued to grow up to the surface of the water. What remained after the volcano became invisible is a ring of coral reefs surrounded by deep ocean.
However some atolls were probably formed by rising sea levels rather by the sinking of islands. Other theories suggest that corals colonized eroded limestone formations, so called karstic saucers.