<div> and <span> elements are used to define parts of an HTML document, usually for styling/CSS purposes. <div> is regularly used for sections, and <span> is used for specific elements like inside a <p> element.