A mortise and tenon joint is the method of joining by forming a solid rectangular projection in the one piece and cutting a corresponding cavity to receive it in the adjoining piece.
The cavity is called mortise and the solid projection is called the tenon. There are a great many modifications of this joint.
Tenon workpiece terminology
Mortise workpiece terminology