Where do we set a class for a div element?

In it's opening tag In it's closing tag Before it's opening tagAfter it's opening tag

In it's opening tag .