# Entità HTML: tutte le entità più importanti

Le entità HTML vengono utilizzate per rappresentare caratteri riservati dal codice o caratteri speciali nell’output. Sono sequenze di caratteri ben definite che segnalano al browser di visualizzare un determinato carattere.

## Cosa sono le entità HTML?

Le entità HTML offrono la possibilità di esprimere **certi caratteri in un documento HTML** che:

- … non sono naturalmente disponibili nel metodo di input utilizzato o sono difficili da inserire;
- … sono riservati per HTML e svolgono una funzione propria nella codifica.

Per rappresentare questi caratteri senza danneggiare il codice, si utilizzano queste sequenze di caratteri ben definite. Si distinguono le entità nominate (entity names) dalle entità numeriche (entity numbers). Mentre le entità nominate sono più facili da leggere e ricordare, le entità numeriche sono particolarmente importanti quando non esiste una variante nominata.

### Entità nominate in HTML

Le entità nominate in HTML hanno il seguente formato:

```html
&nome_entità;
```

Per esempio, nel codice il simbolo commerciale `&` deve essere inserito come `&amp;` (dall’inglese “ampersand”). Di seguito trovi un esempio che illustra l’uso dell’entità:

```html

<html>
<body>
<h1>Esempio di un’entità nominata</h1>
<h2>Il simbolo della e commerciale appare così: &amp;</h2>
<div class="hash d-none" hidden>hash_b7dd0cdb62dd6628b6d4232c4f1a50cd32beda8f</div><script data-shy-copy-guard>(function(){var C=[0x00AD,0x200B,0x200C,0x200D,0x2060,0xFEFF];var s=function(t){for(var i=0;i<C.length;i++){t=t.split(String.fromCharCode(C[i])).join("");}return t;};document.addEventListener("copy",function(e){var sel=document.getSelection();if(!sel||sel.isCollapsed||!e.clipboardData){return;}e.clipboardData.setData("text/plain",s(sel.toString()));try{var d=document.createElement("div");d.appendChild(sel.getRangeAt(0).cloneContents());e.clipboardData.setData("text/html",s(d.innerHTML));}catch(x){}e.preventDefault();});})();</script></body>
</html>
```

N.B. L’ortografia di queste entità HTML **distingue tra maiuscole e minuscole**, quindi bisogna prestare attenzione al loro utilizzo.

### Entità numeriche in HTML

Le entità numeriche in HTML vengono utilizzate nel seguente formato:

```html
&#numero_entità;
```

Invece di `numero_entità` si inserisce il valore Unicode del carattere desiderato. Se desideri scrivere il simbolo commerciale, la sequenza di caratteri `&#38;` è la scelta corretta. Questa versione nel codice appare così:

```html

<html>
<body>
<h1>Esempio di un’entità numerica</h1>
<h2>Il simbolo della e commerciale appare così: &#38;</h2>
<div class="hash d-none" hidden>hash_b7dd0cdb62dd6628b6d4232c4f1a50cd32beda8f</div><script data-shy-copy-guard>(function(){var C=[0x00AD,0x200B,0x200C,0x200D,0x2060,0xFEFF];var s=function(t){for(var i=0;i<C.length;i++){t=t.split(String.fromCharCode(C[i])).join("");}return t;};document.addEventListener("copy",function(e){var sel=document.getSelection();if(!sel||sel.isCollapsed||!e.clipboardData){return;}e.clipboardData.setData("text/plain",s(sel.toString()));try{var d=document.createElement("div");d.appendChild(sel.getRangeAt(0).cloneContents());e.clipboardData.setData("text/html",s(d.innerHTML));}catch(x){}e.preventDefault();});})();</script></body>
</html>
```

## Entità HTML: elenco delle entità più Importanti

Sia che tu stia appena iniziando a [imparare l’HTML](https://www.ionos.it/digitalguide/siti-web/programmazione-del-sito-web/imparare-lhtml-lampio-tutorial-per-principianti/) o che tu lo stia usando da tempo, un elenco delle entità HTML più importanti è sempre utile. Nei paragrafi seguenti troverai alcune delle entità più usate.

### Punteggiatura

<table>
  <thead>
    <tr>
      <th>Carattere</th>
      <th>Descrizione</th>
      <th>Entità nominata</th>
      <th>Entità numerica</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td></td>
      <td>Spazio senza interruzione di pagina</td>
      <td>`&nbsp;`</td>
      <td>`&#160;`</td>
    </tr>
    <tr>
      <td>.</td>
      <td>Punto</td>
      <td>`&period;`</td>
      <td>`&#46;`</td>
    </tr>
    <tr>
      <td>,</td>
      <td>Virgola</td>
      <td>`&comma;`</td>
      <td>`&#44;`</td>
    </tr>
    <tr>
      <td>!</td>
      <td>Punto esclamativo</td>
      <td>`&excl;`</td>
      <td>`&#33;`</td>
    </tr>
    <tr>
      <td>?</td>
      <td>Punto interrogativo</td>
      <td>`&quest;`</td>
      <td>`&#63;`</td>
    </tr>
    <tr>
      <td>&amp;</td>
      <td>E commerciale</td>
      <td>`&amp;`</td>
      <td>`&#38;`</td>
    </tr>
    <tr>
      <td>“</td>
      <td>Virgolette</td>
      <td>`&quot;`</td>
      <td>`&#34;`</td>
    </tr>
    <tr>
      <td>’</td>
      <td>Apostrofo</td>
      <td>`&apos;`</td>
      <td>`&#39;`</td>
    </tr>
    <tr>
      <td>\#</td>
      <td>Cancelletto</td>
      <td>`&num;`</td>
      <td>`&#35;`</td>
    </tr>
    <tr>
      <td>(</td>
      <td>Parentesi aperta</td>
      <td>`&lpar;`</td>
      <td>`&#40;`</td>
    </tr>
    <tr>
      <td>)</td>
      <td>Parentesi chiusa</td>
      <td>`&rpar;`</td>
      <td>`&#41;`</td>
    </tr>
    <tr>
      <td>%</td>
      <td>Percentuale</td>
      <td>`&percnt;`</td>
      <td>`&#37;`</td>
    </tr>
    <tr>
      <td>§</td>
      <td>Simbolo del paragrafo</td>
      <td>`&sect;`</td>
      <td>`&#167;`</td>
    </tr>
  </tbody>
</table>

### Caratteri speciali

<table>
  <thead>
    <tr>
      <th>Carattere</th>
      <th>Descrizione</th>
      <th>Entità nominata</th>
      <th>Entità numerica</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>©</td>
      <td>Copyright</td>
      <td>`&copy;`</td>
      <td>`&#169;`</td>
    </tr>
    <tr>
      <td>®</td>
      <td>Marchio registrato</td>
      <td>`&reg;`</td>
      <td>`&#174;`</td>
    </tr>
    <tr>
      <td>™</td>
      <td>Marchio commerciale</td>
      <td>`&trade;`</td>
      <td>`&#8482;`</td>
    </tr>
    <tr>
      <td>@</td>
      <td>Simbolo della chiocciola</td>
      <td>`&commat;`</td>
      <td>`&#64;`</td>
    </tr>
    <tr>
      <td>♀</td>
      <td>Simbolo femminile</td>
      <td>`&female;`</td>
      <td>`&#9792;`</td>
    </tr>
    <tr>
      <td>♂</td>
      <td>Simbolo maschile</td>
      <td>`&male;`</td>
      <td>`&#9794;`</td>
    </tr>
    <tr>
      <td></td>
      <td>Segno di spunta</td>
      <td>`&check;`</td>
      <td>`&#10003;`</td>
    </tr>
    <tr>
      <td></td>
      <td>Croce</td>
      <td>`&cross;`</td>
      <td>`&#10007;`</td>
    </tr>
  </tbody>
</table>

### Simboli matematici

<table>
  <thead>
    <tr>
      <th>Carattere</th>
      <th>Descrizione</th>
      <th>Entità nominata</th>
      <th>Entità numerica</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>+</td>
      <td>Più</td>
      <td>`&plus;`</td>
      <td>`&#43;`</td>
    </tr>
    <tr>
      <td>−</td>
      <td>Meno</td>
      <td>`&minus;`</td>
      <td>`&#8722;`</td>
    </tr>
    <tr>
      <td>×</td>
      <td>Moltiplicazione</td>
      <td>`&times;`</td>
      <td>`&#215;`</td>
    </tr>
    <tr>
      <td>÷</td>
      <td>Divisione</td>
      <td>`&divide;`</td>
      <td>`&#247;`</td>
    </tr>
    <tr>
      <td>=</td>
      <td>Uguale</td>
      <td>`&equals;`</td>
      <td>`&#61;`</td>
    </tr>
    <tr>
      <td>&lt;</td>
      <td>Minore di</td>
      <td>`&lt;`</td>
      <td>`&#60;`</td>
    </tr>
    <tr>
      <td>&gt;</td>
      <td>Maggiore di</td>
      <td>`&gt;`</td>
      <td>`&#62;`</td>
    </tr>
  </tbody>
</table>

### Valute

<table>
  <thead>
    <tr>
      <th>Carattere</th>
      <th>Descrizione</th>
      <th>Entità nominata</th>
      <th>Entità numerica</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>€</td>
      <td>Euro</td>
      <td>`&euro;`</td>
      <td>`&#8364;`</td>
    </tr>
    <tr>
      <td>¢</td>
      <td>Centesimo</td>
      <td>`&cent;`</td>
      <td>`&#162;`</td>
    </tr>
    <tr>
      <td>$</td>
      <td>Dollaro</td>
      <td>`&dollar;`</td>
      <td>`&#36;`</td>
    </tr>
    <tr>
      <td>£</td>
      <td>Sterlina</td>
      <td>`&pound;`</td>
      <td>`&#163;`</td>
    </tr>
    <tr>
      <td>¥</td>
      <td>Yen</td>
      <td>`&yen;`</td>
      <td>`&#165;`</td>
    </tr>
  </tbody>
</table>

### Diacritici

<table>
  <thead>
    <tr>
      <th>Carattere</th>
      <th>Descrizione</th>
      <th>Entità nominata</th>
      <th>Entità numerica</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>À</td>
      <td>A maiuscola con accento grave</td>
      <td>`&Agrave;`</td>
      <td>`&#192;`</td>
    </tr>
    <tr>
      <td>à</td>
      <td>a minuscola con accento grave</td>
      <td>`&agrave;`</td>
      <td>`&#224;`</td>
    </tr>
    <tr>
      <td>È</td>
      <td>E maiuscola con accento grave</td>
      <td>`&Egrave;`</td>
      <td>`&#200;`</td>
    </tr>
    <tr>
      <td>è</td>
      <td>e minuscola con accento grave</td>
      <td>`&egrave;`</td>
      <td>`&#232;`</td>
    </tr>
    <tr>
      <td>É</td>
      <td>E maiuscola con accento acuto</td>
      <td>`&Eacute;`</td>
      <td>`&#201;`</td>
    </tr>
    <tr>
      <td>é</td>
      <td>e minuscola con accento acuto</td>
      <td>`&eacute;`</td>
      <td>`&#233;`</td>
    </tr>
    <tr>
      <td>Ì</td>
      <td>I maiuscola con accento grave</td>
      <td>`&Igrave;`</td>
      <td>`&#204;`</td>
    </tr>
    <tr>
      <td>ì</td>
      <td>i minuscola con accento grave</td>
      <td>`&igrave;`</td>
      <td>`&#236;`</td>
    </tr>
    <tr>
      <td>Ò</td>
      <td>O maiuscola con accento grave</td>
      <td>`&Ograve;`</td>
      <td>`&#210;`</td>
    </tr>
    <tr>
      <td>ò</td>
      <td>o minuscola con accento grave</td>
      <td>`&ograve;`</td>
      <td>`&#242;`</td>
    </tr>
    <tr>
      <td>Ó</td>
      <td>O maiuscola con accento acuto</td>
      <td>`&Oacute;`</td>
      <td>`&#211;`</td>
    </tr>
    <tr>
      <td>ó</td>
      <td>o minuscola con accento acuto</td>
      <td>`&oacute;`</td>
      <td>`&#243;`</td>
    </tr>
    <tr>
      <td>Ù</td>
      <td>U maiuscola con accento grave</td>
      <td>`&Ugrave;`</td>
      <td>`&#217;`</td>
    </tr>
    <tr>
      <td>ù</td>
      <td>u minuscola con accento grave</td>
      <td>`&ugrave;`</td>
      <td>`&#249;`</td>
    </tr>
  </tbody>
</table>

Consiglio Nella nostra Digital Guide, troverai molte altre guide dedicate all’[Hypertext Markup Language (HTML)](https://www.ionos.it/digitalguide/siti-web/programmazione-del-sito-web/cose-lhtml/). Ad esempio, ti spieghiamo cosa sono i [tag HTML](https://www.ionos.it/digitalguide/siti-web/programmazione-del-sito-web/tag-html/), quali sono le peculiarità di [HTML5](https://www.ionos.it/digitalguide/siti-web/programmazione-del-sito-web/cose-lhtml5/) e come iniziare a muovere i primi passi con [CSS](https://www.ionos.it/digitalguide/siti-web/web-design/come-imparare-il-css-una-guida-semplice/).


This is a markdown version of: [https://www.ionos.it/digitalguide/siti-web/programmazione-del-sito-web/entita-html/](https://www.ionos.it/digitalguide/siti-web/programmazione-del-sito-web/entita-html/) for AI/LLM consumption.