---
title: alertTemplate
framework: tvml
role: collectionGroup
path: tvml/alerttemplate
---

# alertTemplate

Displays important information to the user.

## Overview

Overview Use the alertTemplate element to display important information, such as a message telling the user to perform an action before continuing. At a minimum, provide a description of the alert and a button so the user can take any required actions. The following figure shows the basic layout for an alertTemplate page. The theme for the alert template defaults to the system preference.

Main Elements The following listing shows the main elements of the alertTemplate element in TVML format: <alertTemplate>    <background>       …    </background>    <title>…</title>    <description>…</description>    <button>       <text>…</text>    </button>    <text>…</text> </alertTemplate> Element Descriptions Example The following listing shows the TVML for an alertTemplate example: <document>    <alertTemplate>       <title>Update Available</title>       <description>Get the latest tvOS version</description>       <button>          <text>Update Now</text>       </button>       <button>          <text>Cancel</text>       </button>    </alertTemplate> </document> The following figure shows the output for the above example:

## Topics

### Valid TVML Attributes

- [autoHighlight](tvml/autohighlight.md)
- [binding](tvml/binding.md)
- [layoutDirection](tvml/layoutdirection.md)
- [prototype](tvml/prototype.md)
- [theme](tvml/theme.md)

## See Also

### Full-Page Templates

- [catalogTemplate](tvml/catalogtemplate.md)
- [compilationTemplate](tvml/compilationtemplate.md)
- [descriptiveAlertTemplate](tvml/descriptivealerttemplate.md)
- [divTemplate](tvml/divtemplate.md)
- [formTemplate](tvml/formtemplate.md)
- [listTemplate](tvml/listtemplate.md)
- [loadingTemplate](tvml/loadingtemplate.md)
- [mainTemplate](tvml/maintemplate.md)
- [menuBarTemplate](tvml/menubartemplate.md)
- [oneupTemplate](tvml/oneuptemplate.md)
- [paradeTemplate](tvml/paradetemplate.md)
- [productBundleTemplate](tvml/productbundletemplate.md)
- [productTemplate](tvml/producttemplate.md)
- [ratingTemplate](tvml/ratingtemplate.md)
- [searchTemplate](tvml/searchtemplate.md)
