class on span elements


« Previous Next »

In the following example we have two <span> elements with a class attribute with the value of "note". Both <span> elements will be styled equally according to the .note style definition in the head section:







Live Demo & Try it yourself!