Yes, it is possible, but you can only declare the class
attribute once per HTML element. Just separate the classes you want to apply by a space.
<a href="#" class="class1 class2">My Text</a>
If you declare the class attribute more than once, all definitions beyond the first will be ignored, so in your code .class2
will not be applied to your link.