what does the span html do code example
Example 1: what is span in html
<!--
Span is used to group inline elements.
You can apply specific attributes to the span element
that will only be applied to the content within.
Below is a simple example -->
<p>Black text <span style="color:#ff0000">Red Text </span>Back to Black</p>
Example 2: html span
A <span> element used to color a part of a text:
<span style="font-size:30px">☰ </span>
<!-- ☰ is a color value -->