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

# height

Specifies the maximum height for an image.

## Overview

The image is shrunk to fit the bounding box if the image is bigger than the size
specified for the `height` attribute. You must declare either a `height` style or
attribute for an image. Declaring a style overwrites an attribute declaration. Here’s
an example that sets the height of the image to 200 points.

```xml
<img src="resource://mpaa-g" height="200">
```

### Values for height

- Integer: The height of the element, in points.

### Elements that Use height

- [decorationLabel](/documentation/TVML/decorationlabel)
- [fullscreenImg](/documentation/TVML/fullscreenimg)
- [heroImg](/documentation/TVML/heroimg)
- [img](/documentation/TVML/img)

---

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)