# Text formats

Some notes on text formats:

* The filters in the text format setting are applied sequentially, with the output of each filter being passed onto the next filter.
* Text formats should be assigned by role. Anonymous users should only have access to plain text input format, whereas trusted users can have access to *Rich text* privileges so they can add links, images, and so on.
* The HTML filter only allows the following tags by default:

\<a href hreflang> \<em> \<strong> \<cite> \<blockquote cite> \<code> \<ul type> \<ol start type> \<li> \<dl> \<dt> \<dd> \<h2 id> \<h3 id> \<h4 id> \<h5 id> \<h6 id> \<img src alt data-entity-type data-entity-uuid> \<u> \<s> \<sup> \<sub> \<table> \<caption> \<tbody> \<thead> \<tfoot> \<th> \<td> \<tr> \<p> \<drupal-entity data-entity-type data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-align data-caption data-embed-button>

* The site administrator can add or remove HTML tags from this list in the **Filter settings** section from **Configuration** → **Content authoring** → **Text formats and editors** → **Rich text**.

A more detailed explanation of Input Formats and Filters can be found here: <https://www.drupal.org/docs/user_guide/en/structure-text-format-config.html>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://salsa-digital.gitbook.io/govcms-site-builder/unit-5-text-formats-and-rich-text/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
