a mordent goes up to the next note and back down before hitting the following note…so if you’re going from F to E then you play F, G, F, E but the G and F are snuck in there without changing the time of the music as written
a trill is simply going back and forth between 2 notes like F and G over and over really fast.