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

# ratingCard

Contains rating information about a product.

## Overview

This element can contain information about a movie’s viewing rating or information
from a rating service, such as Rotten Tomatoes. Here’s an example that shows a movie
has been rated for general audiences.

```xml
<ratingCard>
    <title><ratingBadge src="resource://mpaa-g" />General Admission</title>
    <text>Text</text>
    <description>Description</description>
</ratingCard>
```

### Subelements of ratingCard

- [description](/documentation/TVML/description)
- [infoTable](/documentation/TVML/infotable)
- [organizer](/documentation/TVML/organizer)
- [ratingBadge](/documentation/TVML/ratingbadge)
- [section](/documentation/TVML/section)
- [text](/documentation/TVML/text)
- [title](/documentation/TVML/title)

### Elements that Use ratingCard

- section

## 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.

[height](/documentation/TVML/element-shaping-height)

Specifies the height of 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.

[tv-align](/documentation/TVML/tv-align)

Aligns an element horizontally inside its parent.

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

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

[tv-position](/documentation/TVML/tv-position)

Sets the position of an element inside of its parent 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.



---

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)