Saturday, July 1, 2017

Can HTML elements refer to more than one class?

Yes,  HTML elements can also refer to more than one class.
In the example below, the <p> element will be styled according to class="center" and to class="large":

Example

<p class="center large">This paragraph refers to two classes.</p>