The div (division of content) element is used for creating generic block-level elements.
The span element is used for creating generic inline elements.
The generic elements are given meaning and context with the id and class attributes. The generic elements, together with their ids and classes, give meaning to text.