When analyzing the source code of bartzmall.pk using various browsers, it reveals different classes being added to the html tag for each browser.
For Firefox:
<html class="firefox firefox53 otherClasses">
For Chrome:
<html class="webkit chrome chrome58 otherClasses">
For Internet Explorer:
<html class="ie ie11 otherClasses">
And for Opera:
<html class="webkit opera opera45 otherClasses">
The "otherClasses" class encompasses around 14 other common classes across all browsers.
How does this website manage to modify its source code based on the browser used? What is the purpose behind these unique browser-specific classes?
P.S. Additionally, why are there so many classes added to the html tag in the first place?