Spans

The <span> tag is created by percent % signs between whitespaces. It is used to group inline-elements in a document.

Textile example: Spans

My mother has %{color:green;}green% eyes.

Textile input (editable)

Browser output

HTML output


More about: Spans

1. HTML class and id attributes…

(class) or (#id) or (class#id)

…can also be used on spans.

Further reading: Spans

  1. MDN: The HTML <span> element

See something wrong in this page? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.