HTML4 HTML5
Specifies the scope of text attributes or classes[cite: 3]. Unlike div, span is not a block-level element and does not affect text layout[cite: 3].
Both opening and closing tags are mandatory[cite: 3].
Code:
Blue text color <span style="color:brown;font-weight:bold">with brown</span> insert.
</span></p>
The browser will interpret this code as follows:
Blue text color with brown insert.