span
The HTML <span>
element is a generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the class
or id
attributes), or because they share attribute values, such as lang
. It should be used only when no other semantic element is appropriate. <span>
is very much like a <a title="The HTML
element is the generic container for flow content and does not inherently represent anything. Use it to group elements for purposes such as styling (using the class or id attributes), marking a section of a document in a different language (using the lang attribute), and so on." href="/en-US/docs/Web/HTML/Element/div"><div>
element, but <a title="The HTML
element is the generic container for flow content and does not inherently represent anything. Use it to group elements for purposes such as styling (using the class or id attributes), marking a section of a document in a different language (using the lang attribute), and so on." href="/en-US/docs/Web/HTML/Element/div"><div>
is a block-level element whereas a <span>
is an inline element.
col - This attribute contains a positive integer indicating the number of consecutive columns the <col>
element spans. If not present, its default value is 1
.
colgroup - This attribute contains a positive integer indicating the number of consecutive columns the <colgroup>
element spans. If not present, its default value is 1
.
Note: This attribute is applied on the attributes of the column group, it has no effect on the CSS styling rules associated with it or, even more, to the cells of the column's members of the group.
- The
span
attribute may not be present if there are one or more<col>
elements within the<colgroup>
.
Attributes
- Graph
- Supertypes
- trait Attrtrait Tagclass Objecttrait Matchableclass Any
- Self type
- span.type