Coral reefs can be divided into three types: fringing reefs, barrier reefs, and atolls. Fringing reefs are close to shore, whereas a barrier reef will lie further out to sea. Often, atolls will be mistaken for islands because they are so large and generally appear on the rim of a lagoon.