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

# binding

Associates information in a data item with an element.

## Overview

Use the `binding` attribute to associate the property path in a data item with an
element.

> Note: For more information on binding, see 
> [Manipulating the Document Object Model
> (DOM)](https://developer.apple.com/library/content/documentation/TVMLKitJS/Conceptual/TVMLProgrammingGuide/GeneratingContentForYourApp.html#//apple_ref/doc/uid/TP40016718-CH4-SW1)
> in the TVML Programming Guide.

### Values for binding

- `@<attribute>:{value}`: The attribute tag and value. For example, `<img binding=”@src:{url};”/>`
  adds the `src` attribute with the URL found in the associated data item.
- `items:{property path}`: The item associated with the specified property path.
- `textContent:{property path}`: The text associated with the specified property
  path.

### Elements that Use binding

The `binding` attribute can be used with any 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)