<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/textbadge",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "textBadge"
}
-->

# textBadge

Displays text associated with an image.

## Overview

The `textBadge` element contains a link to an image that is to be displayed. Here’s
an example that displays the Subtitles for the deaf and hard of hearing (SDH) badge.

```xml
<textBadge>SDH</textBadge>
```

### Contained In

- [header](/documentation/TVML/header)
- [organizer](/documentation/TVML/organizer)

## Topics

### Valid TVML Styles

[background-color](/documentation/TVML/background-color)

Changes the background color of an element.

[border-radius](/documentation/TVML/border-radius)

Changes the shape of an element’s corner.

[color](/documentation/TVML/color)

Changes the color of an element.

[font-family](/documentation/TVML/font-family)

Specifies the font used for the text in an element.

[font-size](/documentation/TVML/font-size)

Specifies the font size for the text in an element.

[font-weight](/documentation/TVML/font-weight)

Specifies the font weight for the text in an element.

[margin](/documentation/TVML/margin)

Specifies the spacing around an element.

[padding](/documentation/TVML/padding)

Specifies the padding between the border and contents of an element.

[text-shadow](/documentation/TVML/text-shadow)

Adds a shadow effect to displayed text.

[tv-tint-color](/documentation/TVML/tv-tint-color)

Sets the tint color for an element.

### Valid TVML Attributes

[binding](/documentation/TVML/binding)

Associates information in a data item with an element.

[prototype](/documentation/TVML/prototype)

Associates a data item type with an element.

[theme](/documentation/TVML/theme)

Sets the color scheme for an element.

[type](/documentation/TVML/type)

Specifies how a badge is drawn.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)