Article

title

Displays a short amount of text.

Overview

This element is commonly used to display the title for another element and is often only a couple of words long. Here's an example that shows the title for a monogram.

<monogramLockup>
    <monogram firstName="Anne" lastName="Johnson"/>
    <title>Anne Johnson</title>
    <subtitle>Actor</subtitle>
</monogramLockup>

Contained In

Topics

Valid TVML Styles

color

Changes the color of an element.

font-family

Specifies the font used for the text in an element.

font-size

Specifies the font size for the text in an element.

font-weight

Specifies the font weight for the text in an element.

margin

Specifies the spacing around an element.

max-height

Specifies the maximum height for an element.

max-width

Specifies the maximum width for an element.

min-height

Specifies the minimum height for an element.

min-width

Specifies the minimum width for an element.

text-align

Aligns text horizonally in an element.

text-shadow

Adds a shadow effect to displayed text.

tv-highlight-color

Changes an element's color when it comes into focus.

tv-minimum-scale-factor

Sets the minimum size for text.

tv-text-max-lines

Specifies the maximum number of lines of text in an element.

tv-text-style

Sets a predefined size and style for text.

Valid TVML Attributes

accessibilityText

Adds hidden text to an element that is used when VoiceOver is enabled.

binding

Associates information in a data item with an element.

prototype

Associates a data item type with an element.

theme

Sets the color scheme for an element.

See Also

Text Elements

decorationLabel

Displays text that describes a displayed element.

description

Displays multiple lines of text.

date

Displays a date.

monogram

Displays information below a monogramLockup element.

ordinal

Displays a number.

strike

Draws a line through the designated text.

subtitle

Displays text below the subtitle's containing element.

text

Displays text on the screen.