If contained within any MetasAttribute parent, adds the meta data to the parent tag. Otherwise, renders a <meta> tag.
The content may be provided in one of three ways, in precedence order:
- Direct child <ao:content> tag.
- As the content attribute
- Contents of tag body, trimmed.
Tag Information
Tag Class: | com.aoapps.taglib.MetaTag |
---|---|
TagExtraInfo Class: | com.aoapps.taglib.ElementTagTEI |
Body Content: | scriptless |
Display Name: | None |
Dynamic Attributes: | true |
Attributes
Name | Required | Evaluation | Type | Description |
---|---|---|---|---|
id | No | Runtime | String |
The id of the element. A nested <ao:id> tag will override this value. |
class | No | Runtime | Object |
The CSS class for the element. A nested <ao:class> tag will override this value. |
dir | No | Runtime | String |
The dir of the element. A nested <ao:dir> tag will override this value. |
style | No | Runtime | Object |
The CSS style for the element. A nested <ao:style> tag will override this value. |
meta | No | Runtime | Meta |
An optional meta to copy all the attributes from, as captured by a MetasAttribute parent tag. |
noscript | No | Runtime | boolean |
When |
name | No | Runtime | Object |
The name of the meta element. A nested <ao:name> tag will override this value. |
httpEquiv | No | Runtime | String | |
itemprop | No | Runtime | String |
The itemprop used for semantic microdata. |
charset | No | Runtime | Object |
The charset of the meta element. Supports java.nio.charset.Charset. Any other object is coerced to string. |
content | No | Runtime | Object |
The content of the meta data. A nested <ao:content> tag will override this value. If neither is provided, the output of the body is used with whitespace trimmed. |