This paragraph is where you should see color & format changes. This paragraph starts with an empty class attribute, and when you click on some of the links below, you can add and remove the simple classes, to see the effect of stacking these classes.
Notice that the myBlue class, always overrides the visible color of the myRed class, if it's present. The only hint is that the reference to the myBlue class comes after the myRed class reference in the stylesheet.
What can we deduce from this? The stacked classes only reference which classes to access for that element. The stylesheet is referenced for the order in which to apply the cascade. (last over-rides first)Note: In a previous version of stackClasses() the name of the class was applied multiple times to the class attribute, with no apparent effect on the browser. This version makes sure the name of a CSS class is not duplicated in the class attribute
add bold add italic add red add blue