title: What is the difference between HTML div and span elements?
body: <p>I would like to ask for some simple examples showing the uses of <code>&lt;div&gt;</code> and <code>&lt;span&gt;</code>. I've seen them both used to mark a section of a page with an <code>id</code> or <code>class</code>, but I'm interested in knowing if there are times when one is preferred over the other.</p>