This element has no special meaning, but it's very useful for semantic element grouping in a inline manner. Basically a span represents its children, using CSS classes to mark up semantics common to a group of consecutive elements (like a gallery of image thumbs, for example):

Span {
    "Text";
    classNames = "label";
    Img {
        src = "images/close.png";
    }
}

If you want to group elements in a block, see Div

Technical details about this element can be found on the Official W3C reference

no subtypes hierarchy

Initializer
Span(String text = "", String? id = null, CssClass classNames = [], String? style = null, String? accessKey = null, String? contextMenu = null, TextDirection? dir = null, Boolean? draggable = null, DropZone? dropZone = null, Boolean? inert = null, Boolean? hidden = null, String? lang = null, Boolean? spellcheck = null, Integer? tabIndex = null, String? title = null, Boolean? translate = null, Aria? aria = null, NonstandardAttributes nonstandardAttributes = ..., DataContainer data = ..., {String|InlineElement|{String|InlineElement*}|Snippet<InlineElement>|Null*} children = ...)
Parameters:
  • text = ""
  • id = null
  • classNames = []
  • style = null
  • accessKey = null
  • contextMenu = null
  • dir = null
  • draggable = null
  • dropZone = null
  • inert = null
  • hidden = null
  • lang = null
  • spellcheck = null
  • tabIndex = null
  • title = null
  • translate = null
  • aria = null
  • nonstandardAttributes = empty
  • data = empty
  • children = {}
Attributes
childrenSource Codeshared actual {String|InlineElement|{String|InlineElement*}|Snippet<InlineElement>|Null*} children
tagSource Codeshared actual Tag tag

The tag name and type.

Refines Node.tag
textSource Codeshared actual String text
Inherited Attributes
Attributes inherited from: BaseElement
Attributes inherited from: Element
Attributes inherited from: Object
Attributes inherited from: StyledElement
Attributes inherited from: Node
Attributes inherited from: ParentNode<Child>
Attributes inherited from: TextNode
Inherited Methods
Methods inherited from: Object