span

slinky.web.html.span$
object span extends Tag with Attr

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 Attr
trait Tag
class Object
trait Matchable
class Any
Self type
span.type

Members list

Concise view

Type members

Classlikes

object tag extends TagElement

Attributes

Graph
Supertypes
class TagElement
class Object
trait Matchable
class Any
Self type
tag.type

Types

type attrType = _span_attr.type
type tagType = tag.type

Inherited types

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

Attributes

Inherited from:
Attr

Value members

Concrete methods

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