If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
The <span> and <div> elements are used to group and structure a document and are used with the attributes class and id. In the following tutorial we will have a close look at the how we use <span> and <div> since these two elements are very important to CSS.
Grouping with <span>
<span> it can be called a neutral element and it is not adding anything to the doc itself. Though with CSS, <span> can be used to add visual features to specific parts of text to some documents.
Example :
Each one of you have used id to add style to the <span> -elements.
Grouping with <div>
<div> is used to group one or more block-level elements.



