A class can be applied to more than one html element. An ID is only to one element, pretty much to define the sections in your webpage, whether its the nav or footer.
You basically create the "style" with all its characterists and then apply it by inserting to an element.