Entità (markup): differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m Bot: sintassi delle note |
|||
Riga 3:
In [[Linguaggio di markup|linguaggi di markup]] quali [[HTML]], [[XML]] e altri derivati dall'[[Standard Generalized Markup Language|SGML]], le '''entità''' (in inglese '''''entity''''') sono una [[codifica]] testuale usata per inserire alcuni [[carattere (informatica)|caratteri]] speciali in maniera indipendente dalla [[tastiera (informatica)|tastiera]] e dal [[sistema operativo]] usato.
La loro forma generale è: "<code>&</code>" + codice identificativo + "<code>;</code>". Il codice identificativo può essere [[alfanumerico]] o numerico, basato sul relativo codice nel set di caratteri [[ASCII]], nel qual caso "<code>#</code>" introduce un numero decimale e "<code>#x</code>" un numero esadecimale; per esempio: "<code>&egrave;</code>", "<code>&#232;</code>" e "<code>&#x00E8;</code>" sono le tre codifiche della lettera "e" con l'accento grave (è)<ref name="dev.w3.org">{{Cita web|url=https://dev.w3.org/html5/html-author/charref.html|titolo=Character Entity Reference Chart|sito=dev.w3.org|accesso=2021-02-11}}</ref><ref>{{Cita web|url=https://www.freecodecamp.org/news/html-entities-symbols-special-character-codes-list/|titolo=HTML Entities – A List of HTML Space and other HTML Symbols and Special Character Codes|sito=freeCodeCamp.org|data=2020-05-25|lingua=en|accesso=2021-02-11}}</ref><ref>{{Cita web|url=https://www.w3schools.com/html/html_entities.asp|titolo=HTML Entities
Le prime definizioni sono state introdotte nella versione HTML 2.0, le successive nella 3.2. Non tutti i [[browser]] supportano tutte le entità.
Riga 14:
</syntaxhighlight>
{| class="wikitable"
|+Principali entità HTML<ref name="dev.w3.org" /><ref>{{Cita web|url=https://www.freeformatter.com/html-entities.html|titolo=Complete list of HTML entities - FreeFormatter
!Carattere
!Nome entità
Riga 530:
== Formattazione ==
Con i [[CSS]] si possono formattare le entità per quanto riguarda il colore, la dimensione e il font<ref>{{Cita web|url=http://www.ioeweb.it/lezioni/html-e-dhtml/simboli-html-e-css-come-inserirli-nei-contenuti|titolo=Simboli HTML e CSS. Come inserirli nei contenuti.
icona_wikipedia:before {
content:"⚓ "
|