In a sentence
Make one quick neighbour-note flick and return to the written pitch.
A mordent is shorter than a trill: the main note moves to one adjacent scale step and immediately returns. The whole gesture fits inside the written duration.
Regular and inverted signs choose opposite neighbours. This page shows the catalogue's rare regular form beside more common inverted forms so the visual distinction is explicit.