Article

background

Display an image or play audio in the background of an app page.

Overview

The background element is used to display an image or play audio in the background of a channel app page. Here's an example that shows adding an image and audio to a background element.

background>
   <img src="" />
   <audio>
      <asset id="" src="" keyDelivery="" />
   </audio>
</background>

Subelements of background

Elements that Use background

Topics

Valid TVML Styles

background-color

Changes the background color of an element.

color

Changes the color of an element.

Valid TVML Attributes

aspectFill

Stretches an image to fill the containing bounding box.

See Also

Background Elements

audio

Play background audio for a full-page template when the template is the top-most document in the navigation stack.