> For the complete documentation index, see [llms.txt](https://docs.opencityitalia.it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opencityitalia.it/stanza-del-cittadino/guida-alla-creazione-dei-servizi-digitali/creare-un-servizio/i-componenti/lhtml.md).

# L'HTML

ll componente "HTML" è un componente non interattivo che serve per inserire contenuti statici o dinamici all'interno del modulo, senza raccogliere dati.

Puoi utilizzare un HTML per inserire eventuali messaggi di errore o comunque messaggi che vuoi rendere visibili all'utente durante la compilazione della pratica.

<figure><img src="https://4252442743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrdV0mwA7iy2c3I7wu5BX%2Fuploads%2Fp81RQyvy7Em4GDih6kSc%2Fimage.png?alt=media&amp;token=591003ca-b756-42b0-8fe1-6f5ca85b14de" alt=""><figcaption><p>Nell'immagine, l'HTML è configurato in modo tale da avvertire il cittadino che l'ISEE che ha inserito è troppo alto e pertanto non può procedere con la richiesta.</p></figcaption></figure>

Una volta trascinato il componente nel modulo, accedi alla sezione "Display" e configura la voce "Content" con il testo che vuoi inserire nel modulo.

<figure><img src="https://4252442743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrdV0mwA7iy2c3I7wu5BX%2Fuploads%2F4DRbYNp45aKO321XQdIX%2Fimage.png?alt=media&amp;token=086458e7-e44f-4e0e-a0f7-cf4adb88c5ea" alt=""><figcaption></figcaption></figure>

### Personalizzare lo stile del messaggio

{% hint style="info" %}
Una classe CSS è un attributo usato in HTML per selezionare e applicare uno stile a elementi specifici. Gli elementi *HTML* con lo stesso attributo “*classe*” avranno lo stesso identico stile.&#x20;
{% endhint %}

Sempre nella sezione "Display", nel campo "CSS Class", puoi assegnare al componente una classe CSS per applicare una grafica coerente con il tipo di messaggio che vuoi comunicare al cittadino.&#x20;

<figure><img src="https://4252442743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrdV0mwA7iy2c3I7wu5BX%2Fuploads%2FRJ11JViBtXBIyBsTkcRz%2Fimage.png?alt=media&amp;token=2a4c8ce9-2c3a-451e-b592-c4cec1931337" alt=""><figcaption></figcaption></figure>

* Puoi inserire la classe `alert alert-info` per mostrare informazioni generiche o dettagli aggiuntivi.&#x20;

<figure><img src="https://4252442743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrdV0mwA7iy2c3I7wu5BX%2Fuploads%2Fix4nVr1eVe9vWPjQ2y10%2Fimage.png?alt=media&amp;token=6639d0fa-f3c3-4441-a7ff-daeab7b4e1a8" alt=""><figcaption></figcaption></figure>

* Puoi inserire la classe `alert alert-warning` per segnalare attenzione o potenziali problemi.&#x20;

<figure><img src="https://4252442743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrdV0mwA7iy2c3I7wu5BX%2Fuploads%2FbcoX9izF2BtCbnX0K0oA%2Fimage.png?alt=media&amp;token=478eed08-eb97-45ed-87e7-f07ea59f804e" alt=""><figcaption></figcaption></figure>

* Puoi inserire la classe `alert alert-danger` per segnalare errori critici o operazioni bloccanti.&#x20;

<figure><img src="https://4252442743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrdV0mwA7iy2c3I7wu5BX%2Fuploads%2FFOjGFvte8pz9ddI2qtRB%2Fimage.png?alt=media&amp;token=45e5b1ac-5124-4ded-b1bb-54cdc9fd901b" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.opencityitalia.it/stanza-del-cittadino/guida-alla-creazione-dei-servizi-digitali/creare-un-servizio/i-componenti/lhtml.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
