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

Tutoriel de base HTML

Média HTML

Manuel de référence HTML

HTML5 Tutoriel de base

HTML5 API

HTML5 Média

Entités HTML

In HTML, some characters are reserved. You cannot use the less than sign (<) and 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.

Remplacement des caractères réservés HTML par des entités de caractères

Les caractères réservés de HTML doivent être remplacés par des entités de caractères.

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

HTML entity

In HTML, some characters are reserved.

You cannot use the less than sign (<) and 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;

ou

&#entity_number;

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

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 (browser support for entity numbers is good, though).

Non-breaking Space (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 If you need to increase the number of spaces on a page, you need to use the   character entity.

Combining 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 ne supporte)'
cent¢¢
£pound££
¥RMB/yen¥¥
euro
§section§§
©copyright©©
®registered trademark®®
&x2122;trademark
×multiplication sign××
÷divise÷÷

Bien que HTML ne fasse pas la distinction entre les majuscules et les minuscules, les caractères d'entité sont sensibles à la casse.

Pour voir tous les entités HTML de ce site, veuillez cliquerHTML Manuel de référence des entités.