Matthew, Mark and Luke are the SYNOPTIC GOSPELS. They are called Synoptic because they are similar to each other, giving a SYNOPSIS of the earthly/bodily life of Jesus.
Years later a group of people called the Gnostics (SPECIAL KNOWLEDGE) came and distorted the life and teachings of Jesus and were persuading many Christians and Jews of their false teachings. To correct these misguided teachings, The Apostle John wrote a strong Theological teaching/letter on Jesus, who is God.
This letter is best known as The Gospel of John.