One of the best ways to build credit is to have multiple credit types and make your monthly payments on those credit types faithfully.
If you’re a student, you may already have student loans, but a credit card will help you diversify your credit types. It’s crucial to make your monthly payments on time. Otherwise, a credit card will do more harm to your credit score than good.