<p>Example of using the <span style="color:orange;font-size:xx-large;">span</span> tag.</p>
The above example demonstrates usage of the
<span> element is a generic container that can be used for applying global attributes such as styles, language, text direction, etc.
<div> will create a block that, unless changed with style sheets, will take up the full width and will occupy its own line (i.e. it won't appear inline with other content).
<span> element, on the other hand, appears inline, so you can use the
<span> element to style smaller blocks of text inline.