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