What is a fragment in OpenGL?

A fragment is a synonym for a pixel in opengl.

fragment shaders are also called pixel shaders

If three vertices define a triangle, then the pixels are on the surface of the triangle.

Read this how a fragment becomes a pixel

Each fragment has coordinate data which corresponds to a pixel, as well as color and depth values