Fb:tag
From Facebook Developer Wiki
Contents |
Description
Renders an HTML tag. This is most commonly used in conjunction with fb:intl to put translatable text in an attribute of an HTML tag.
You specify the attributes for the HTML tag in fb:tag-attribute tags directly under this tag. The fb:tag-body tag, if present, holds the contents of the tag.
Note this tag applies only to HTML. FBML-specific elements should use fb:fbml-attribute instead.
Attributes
| Required | Name | Type | Description | |
| required | name | string | The name of the HTML tag to render. |
|---|
Examples
This renders as <img src="http://myhost/image.png" alt="FooCorp company logo" /> in English. In other languages the value of the alt attribute will be replaced with an appropriate translation, provided someone has translated the original string.
A more complex example, a div with a tooltip whose text has dynamic content. This renders as <div class="user_info" title="John Smith has 15 friends.">John Smith is in first place.</div> in English.
See Also
- fb:intl
- fb:tag-attribute
- fb:tag-body
- fb:fbml-attribute (for translating the attributes of FBML tags)
