A genre is a promise between film and audience. Know the conventions of thrillers, horror, romance, action and sci-fi, and you can see how films bend them.
A genre is less a label for filing films into drawers than a promise made in advance between a film and its audience. Hear horror and you expect to be scared; hear romantic comedy and you expect two people to end up close.