Can i give a div class of anyname?

hey guys!

Can I give anyname to a div class? I tried to give is a longer name such as div class=“primerdrum” and matches that with my CSS name but for some reason, it doesn’t work. It only works if I give it a shorter name…