There are two types of karma, positive and negative karma, If you want to know how to get karma, You have to read the forum rules and regulations, Read the pinned posts. In that way you'll learn how get karma.
Well, just a quick answer. Constructive, Informative and helpful posts will give you positive karma and the opposite kind of posts will give you negative karma.