Still in the prologue, John introduces the Baptist’s role before recounting his public testimony later in the chapter.
Chapter 1 in John: John opens with the eternal Word who was with God and was God, then moves through John’s witness, the Lamb of God, and the first disciples who come and see—glory already shining in flesh.
This belongs to John’s prologue and opening witness, introducing the Word, life, light, and first disciples.