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

# src

Specifies the URL for an image.

## Overview

The URL can point to an image on a server or to the resource scheme in your app.
For a list of resource images provide by Apple,
see the Resource Icons section of [TVML](/documentation/TVML).
Here’s an example that displays the United States general admission movie rating
icon.

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

> Note: When this attribute loads an image using an HTTP URL, you must add `height`
> and `width` attributes to the element.

### Values for src

- String: The URL pointing to the location of the image file.

### Elements that Use src

- [badge](/documentation/TVML/badge)
- [decorationImage](/documentation/TVML/decorationimage)
- [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)