span

object span extends Tag with Attr

<span class="seoSummary">The <strong>HTML <code><span></code> element</strong> 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 <code>class</code> or <code>id</code> attributes), or because they share attribute values, such as <code>lang</code>.</span> It should be used only when no other semantic element is appropriate. <code><span></code> 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"><code><div></code></a> 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"><code><div></code></a> is a <a href="/en-US/docs/HTML/Block-level_elements">block-level element</a> whereas a <code><span></code> is an<a href="/en-US/docs/HTML/Inline_elements"> inline element</a>. col - This attribute contains a positive integer indicating the number of consecutive columns the <code><col></code> element spans. If not present, its default value is <code>1</code>. colgroup - This attribute contains a positive integer indicating the number of consecutive columns the <code><colgroup></code> element spans. If not present, its default value is <code>1</code>.

<strong>Note: </strong>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 <code>span</code> attribute may not be present if there are one or more <code><col></code> elements within the <code><colgroup></code>.
trait Attr
trait Tag
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Types

type tagType = tag

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]
Inherited from
Attr

Value members

Concrete methods

@inline
def :=(v: Int): AttrPair[_span_attr]
@inline
def :=(v: Option[Int]): OptionalAttrPair[_span_attr]
@inline
def apply(mods: TagMod[tag]*): WithAttrs[tagType]