A wall bounds or subdivides spaces. Walls are usually vertical, or near vertical, planar elements, often designed to bear structural loads. It can also simply be an architectural element which is non-load bearing.
A parapet is wall-like barrier to protect human occupants from falling, or to prevent the spread of fires. Often designed at the edge of balconies, terraces or roofs.