Krakatoa was the volcanic island before the 1883 eruption that collapsed the island (between Java and Sumatra). The 1883 eruption collapsed the island Krakatoa which caused a new island to form...
Either is correct. Krakatoa, or Krakatau, is a volcano near the Indonesian island of Rakata in western Indonesia, and it is also referred to as Mt Krakatoa.