Depending on which teacher you have, you can use either of the two. However, it is preferable to be consistent in style and not interchange.
Below, you can find either of the two, and examples to help better understand how to use them
MLA Style
Chicago