Google News
logo
HTML - Interview Questions
What is the difference between DIV and SPAN in HTML?
The difference between span and <div> is that a <span> element is in-line and usually used for a small chunk of HTML inside a line,such as inside a paragraph. Whereas, a div or division element is block-line which is equivalent to having a line-break before and after it and used to group larger chunks of code.
 
Example:
<div id="HTML">
	These are HTML<span class="blue_color">Interview Questions</span>
</div>
Advertisement