The elbow and knee joints are synovial joints named hinge joints.
Hinge joints only allow flexion and extension.
A hinge joint is so called because like a hinge door, they largely permit movement in one direction only, as we can't rotate the hinge joint in our knee.