This movement is called convection. It can be found in liquids, gasses and rheids - solids that can also experience movement ( on a big time scale), such as the earth mantle. One of the types of convection is diffusion: net movement of gasses from higher to lower concentration areas.
2 tectonic plates meet at the regions edge
They are called fringing reefs. They grow directly from shore and form borders along the shoreline.
When a fringing reef continues to grow upward from a volcanic island that has sunk entirely below the sea level, an atoll is formed. Atolls are usually circular or oval in shape, with an open lagoon in the center.
The fringing reef is the most common type of coral reef. They however tend to be very sensitive to human induced pollution in the water and are easily destroyed by such.