May 03, 2021 HTML5
The contents of an HTML5-lt;span-gt; label are independent of the document, and when styles are applied to the label, the contents contained there appear differently visually. Please refer to the following example:
Color a portion of the text using the element:
<p>我的母亲有 <span style="color:blue">蓝色</span> 的眼睛。</p>
All major browsers support the hashtag.
Used to combine in-line elements in a document.
The label does not appear in a fixed format. W hen a style is applied to it, it produces a visual change. I f you don't apply a style to the .lt;span; element, there will be no visual difference between the text in the element and the other text.
Labels provide a way to separate parts of text or parts of a document.
Tip: The text contained in the element, you can use CSS to define a style for it, or javaScript to manipulate it.
NONE.
The label supports the global properties of HTML.
The tag supports the event properties of HTML.