Class names are meant to describe what classes (logical groupings of any sort you wish to use) an HTML element belongs to. Classes do not need to be defined anywhere.
They are handy for CSS to target and associate with styles and for use in Javascript, but that need not be the case. Sometimes classes are merely semantic. For example you could mark poetry with class="poem" without associating any visible style with that class.
Last edited by jhowell; 07-26-2017 at 02:32 PM.
Reason: typos
|