Template:Span title/doc
![]() | This is a documentation subpage for Template:Span title. It contains usage information, categories and other content that is not part of the original template page. |
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.