# Text-Based Assets

Five asset types hold text that you write or upload: **CSS**, **HTML**, **JSON**, **Shader** and **Text**. They all work the same way in the Editor:

- **Create** one from the **+** menu in the [Assets panel](https://developer.playcanvas.com/user-manual/editor/assets/asset-panel.md), or upload a file with one of the extensions below.
- **Edit** one by right-clicking it in the Assets panel and selecting **Edit**, which opens it in the [Code Editor](https://developer.playcanvas.com/user-manual/editor/scripting/code-editor.md).
- **Inspect** one by selecting it. The Inspector shows a read-only preview of its contents, and these asset types have no properties to set.

[Image: The JSON asset inspector, showing a formatted preview of the asset's data]

To use one of these assets from a script, see [Asset Attributes](https://developer.playcanvas.com/user-manual/scripting/script-attributes/esm.md#asset-attribute).

## CSS

A CSS asset holds a style sheet. Upload a `.css` file to create one. Use it to style HTML that your app adds to the page, such as a user interface built with HTML. See [HTML and CSS](https://developer.playcanvas.com/user-manual/user-interface/html-and-css.md).

## HTML

An HTML asset holds HTML: a whole page, or just part of one. Upload an `.html` file to create one.

## JSON

A JSON asset holds structured data in [JavaScript Object Notation](https://en.wikipedia.org/wiki/JSON), a format that is easy for people to read and write and easy for code to parse. Upload a `.json` file to create one. JSON assets are useful for:

- Configuration and game settings
- Level layouts and other design data
- Data for procedural generation

Keeping large data sets in a JSON asset, rather than in script attributes, also keeps your scenes small. See [Scene Size Limit](https://developer.playcanvas.com/user-manual/editor/scenes.md#size-limit).

## Shader

A Shader asset holds GLSL code for custom rendering effects. Upload a `.glsl`, `.vert` or `.frag` file to create one. See [Shaders](https://developer.playcanvas.com/user-manual/graphics/shaders.md).

## Text

A Text asset holds plain text, such as dialog or other data your app reads. Upload a `.txt` or `.xml` file to create one. Spine texture atlases (`.atlas` files) are uploaded as Text assets too. See [Spine](https://developer.playcanvas.com/user-manual/engine/libraries/spine.md).
