add 2 class to a element in html code example Example: html add two classes <a href="#" class="class1 class2">My Text</a>