Template:Span title

From Sarkarverse
Revision as of 18:36, 4 December 2013 by T12 (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{2}}}

Documentation icon Template documentation[view] [edit] [history] [purge]

This template creates an HTML span element with a title attribute, which is rendered by many user-agents as producing a tooltip when hovered over with a cursor.

{{span title|This is the title|This is the text}}

produces the code:

<span title="This is the title">This is the text</span>

Which renders as:

This is the text

Using the template is slightly neater than using raw HTML in a page.