First is important to know there are various kinds of humor. And each will appeal to different people.
In my comic i try to appeal to a wider audience, so i try jokes with different kinds of humor.
Here is a list of different types:
Physical comedy: one of the classics, laughing at somebody falling
Surreal humor: laughing at the absurdity of the situation
Puns: jokes using a word. Excel works too.
Parody: play with the expectations of certain genres to give a funny twist
Cringe comedy: laughing at the awkwardness of a situation
Dark humor: turning the horrifying/inapropiate/dirty into funny. Be careful with this one, if your comic is too lighthearted, it may alienate your audience if you do a joke like that.
Exageration: sometimes is funny to exagerate a situation or a person`s reaction.
Relatable humor: Laughing at the typical situations of real life. (be careful, some are overused)
For a joke you need:
Build up:You need to generate certain expectations
A punchline: break them in a hillarious way.
I think this link elaborates better about it.
Hope this helps