English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Tutoriales básicos de HTML

Medios HTML

Manual de referencia de HTML

HTML5 Tutoriales básicos

HTML5 API

HTML5 Medios

Entidades de caracteres HTML

Certain characters are reserved in HTML. We cannot use the less than sign (<) and the greater than sign (>) in HTML, because the browser will misinterpret them as tags. If we want to display reserved characters correctly, we must use character entities (character entities) in the HTML source code.

Reemplazo de caracteres reservados en HTML por entidades de caracteres

Los caracteres reservados en HTML deben ser reemplazados por entidades de caracteres.

Some characters that are not found on the keyboard can also be replaced with character entities.

HTML entities

Certain characters are reserved in HTML.

We cannot use the less than sign (<) and the greater than sign (>) in HTML, because the browser will misinterpret them as tags.

If we want to display reserved characters correctly, we must use character entities (character entities) in the HTML source code. Character entities are similar to this:

&entity_name;

or

&#entity_number;

To display the less than sign, we must write: < or < or <

Tip: The advantage of using entity names instead of numbers is that they are easy to remember. However, the disadvantage is that browsers may not support all entity names (entity numbers are supported very well).

Non-breaking Space (Non-Non-breaking Space)

The commonly used character entities in HTML are non-breaking spaces ( ).

The browser always truncates spaces in HTML pages. If you write 10 spaces, the browser will delete them before displaying the page. 9 number. If you need to increase the number of spaces on a page, you need to use the   character entity.

Combined with phonetic symbols

Phonetic symbols are a "glyph" added to letters.

Some accents, such as the acute accent (́) and the grave accent (̀).

Accents can appear above, below, inside, or between letters.

Accents can be used in combination with letters, numbers, and character combinations.

The following are some examples:

Phonetic symbolCharacterConstructOutput result
  ̀a
  ́a
̂a
  ̃a
  ̀O
  ́O
̂O
  ̃O

HTML character entities

Entity names are case-sensitive!
Display resultDescriptionEntity nameEntity number
 Space  
<Less than sign<<
>Greater than sign>>
&And sign&&
"Quotation marks""
'Apostrophe ' (IE不支持)'
Cent¢¢
£Pound££
¥RMB/Yen¥¥
Euro
§Section§§
©Copyright©©
®Registered trademark®®
&x2122;Trademark
×Multiplication sign××
÷Divisor÷÷

Aunque html no distingue entre mayúsculas y minúsculas, los caracteres de entidad son sensibles a mayúsculas y minúsculas.

Ver la lista completa de entidades HTML de este sitio: haga clicHTML Manual de referencia de entidades