The Html <div> tag is represents the particular block or section. It is also work as a container that contain HTML elements and text, images etc. The <span> tag is also work as container but the main difference between <div> and <span> is that the div tag is used with blocklevel elements whilst the span tag is used with inline elements.
Example of Code
<style type="text/css">
.welcome-box{
background:#cccccc;
border:1px solid #333333;
}
</style>
<div class="welcome-box">
<h1>Welcome</h1>
<p>Hi, welcome to our website.</p>
</div>
Output
Welcome
Hi, welcome to our website.