当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <span>标签
The <span> tag is used to group inline-elements in a document.
<span>标签可用来在文档内聚集内联元素
NONE
无
Tip: Use the <span> tag to group inline-elements to format them with styles
提示:使用<span>标签来聚集内联元素,并用样式来格式化它们
代码 | 输出结果 |
---|---|
<p>This is a paragraph <span style="color:#0000FF;">This is a paragraph</span> This is a paragraph</p> <p> | This is a paragraph This is a paragraph This is a paragraph This is another paragraph |
id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard Attributes.
查看完整的属性
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
查看完整的属性