Template:Span title

From Sarkarverse
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.