There are two different types of Apex triggers used within Salesforce:
‘Before’ Apex Triggers (used to update or validate the value in a record before it gets saved to the Salesforce database) and ‘After’ Apex Triggers.