---
title: Banner
description: How to display a banner at the top of the page and when to use it.
image: https://developers.cloudflare.com/cf-twitter-card.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/style-guide/llms.txt  
> Use this file to discover all available pages before exploring further. 

[Skip to content](#%5Ftop) 

Do **not** use banners in the [Frontmatter](https://developers.cloudflare.com/style-guide/frontmatter/) unless a change will cause customer application to break.

# Banner

One of the fields you can add to the [Frontmatter](https://developers.cloudflare.com/style-guide/frontmatter/) is `banner`. It displays a prominent section at the top of the page and supports the use of HTML for links and formatting.

Only use it to alert about disruptive situations and take note to remove it when applicable.

## Example

```
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner:  content: Do <strong>not</strong> use banners in the <a href="https://developers.cloudflare.com/style-guide/frontmatter/">Frontmatter</a> unless a change will cause customer application to break.---
```

## Styles / Types

### Note

The note banner is used to alert about important information.

```
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner:  content: Ensure you read this!  type: note---
```

### Tip

The tip banner is used to alert about important suggestions.

```
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner:  content: Consider this alternative!  type: tip---
```

### Caution

The caution banner is used to warn readers of upcoming disruptive changes.

```
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner:  content: This is deprecated and will break on <strong>1970-01-01</strong>!  type: caution---
```

### Danger

The danger banner is used to alert about errors.

```
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner:  content: This has been removed!  type: danger---
```

### Default

The default banner is used in all other circumstances.

```
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner:  content: Do <strong>not</strong> use banners in the <a href="https://developers.cloudflare.com/style-guide/frontmatter/">Frontmatter</a> unless a change will cause customer application to break.---
```

```json
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/style-guide/frontmatter/banner/#page","headline":"Banner · Cloudflare Style Guide","description":"How to display a banner at the top of the page and when to use it.","url":"https://developers.cloudflare.com/style-guide/frontmatter/banner/","inLanguage":"en","image":"https://developers.cloudflare.com/cf-twitter-card.png","dateModified":"2026-05-18","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/style-guide/","name":"Style Guide"}},{"@type":"ListItem","position":3,"item":{"@id":"/style-guide/frontmatter/","name":"Frontmatter"}},{"@type":"ListItem","position":4,"item":{"@id":"/style-guide/frontmatter/banner/","name":"Banner"}}]}
```
