tagName - Tag Name

Specifies a markup tag for the control.

Category

basics

Syntax

tagName="name"

Usage

In Design mode, click All Properties and look for tagName under basics.

This tag replaces the default tag. For example, the default tag for a Computed Field control is span.

Examples

This Computed Field control uses the tag div instead of span.
<xp:text escape="true" id="computedField1"
	value="#{javascript:return requestScope.number1 + requestScope.number2}"
	tagName="div">
	<xp:this.converter>
		<xp:convertNumber type="number"></xp:convertNumber>
	</xp:this.converter>
</xp:text>