What are exactly the graphic libraries as DirectX, OpenGL and Allegro?

I have no idea how you'd use them, or how you'd do it.

What would be the simplest program where you could apply them? Just to have an example.

I don't need them at all, but I'd like to know what they are.

I hope this question is not as bad as a clrscr related one