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

# infoTable

Displays contained element information in a vertical format, with each successive
element directly below the previous element.

## Overview

Here’s an example that displays information vertically inside of a `ratingCard` element.

```xml
<ratingCard>
    <title><badge src="resource://tomato-fresh" /> 99%</title>
    <text>Tomatometer</text>
    <infoTable>
        <info>
            <header>
                <title>175</title>
            </header>
            <text>Reviews</text>
        </info>
        <info>
            <header>
                <title>173</title>
            </header>
            <text>Fresh</text>
        </info>
        <info>
            <header>
                <title>2</title>
            </header>
            <text>Rotten</text>
        </info>
    </infoTable>
</ratingCard>
```

### Subelements of infoTable

- [footer](/documentation/TVML/footer)
- [header](/documentation/TVML/header)
- [info](/documentation/TVML/info)

### Elements that Use infoTable

- [descriptiveAlertTemplate](/documentation/TVML/descriptivealerttemplate)
- [productInfo](/documentation/TVML/productinfo)
- [ratingCard](/documentation/TVML/ratingcard)
- [relatedContent](/documentation/TVML/relatedcontent)

## Topics

### Valid TVML Styles

[margin](/documentation/TVML/margin)

Specifies the spacing around an element.

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

Specifies the maximum height for an element.

[tv-line-spacing](/documentation/TVML/tv-line-spacing)

Specifies the amount of space between lines of text.

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

Specifies how wide an element is.

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