Símbolos HTML
Símbolos que não estão presentes em seu teclado também podem ser adicionados usando entidades.
Entidades Símbolo HTML
As entidades HTML foram descritas no capítulo anterior.
Muitos símbolos matemáticos, técnicos e monetários não estão presentes em um teclado normal.
Para adicionar esses símbolos a uma página HTML, você pode usar o nome da entidade ou o número da entidade (uma referência decimal ou hexadecimal) para o símbolo.
Exemplo
Exiba o sinal do euro, €, com um nome de entidade, um decimal e um valor hexadecimal:
<p>I will display €</p>
<p>I will display €</p>
<p>I will display €</p>
Será exibido como:
Mostrarei €
Mostrarei €
Mostrarei €
Mostrarei €
Mostrarei €
Alguns símbolos matemáticos suportados por HTML
Char | Number | Entity | Description | Try it |
---|---|---|---|---|
∀ | ∀ | ∀ | FOR ALL | |
∂ | ∂ | ∂ | PARTIAL DIFFERENTIAL | |
∃ | ∃ | ∃ | THERE EXISTS | |
∅ | ∅ | ∅ | EMPTY SETS | |
∇ | ∇ | ∇ | NABLA | |
∈ | ∈ | ∈ | ELEMENT OF | |
∉ | ∉ | ∉ | NOT AN ELEMENT OF | |
∋ | ∋ | ∋ | CONTAINS AS MEMBER | |
∏ | ∏ | ∏ | N-ARY PRODUCT | |
∑ | ∑ | ∑ | N-ARY SUMMATION |
Referência matemática completa
Algumas letras gregas suportadas por HTML
Char | Number | Entity | Description | Try it |
---|---|---|---|---|
Α | Α | Α | GREEK CAPITAL LETTER ALPHA | |
Β | Β | Β | GREEK CAPITAL LETTER BETA | |
Γ | Γ | Γ | GREEK CAPITAL LETTER GAMMA | |
Δ | Δ | Δ | GREEK CAPITAL LETTER DELTA | |
Ε | Ε | Ε | GREEK CAPITAL LETTER EPSILON | |
Ζ | Ζ | Ζ | GREEK CAPITAL LETTER ZETA |
Algumas outras entidades suportadas por HTML
Char | Number | Entity | Description | Try it |
---|---|---|---|---|
© | © | © | COPYRIGHT SIGN | |
® | ® | ® | REGISTERED SIGN | |
€ | € | € | EURO SIGN | |
™ | ™ | ™ | TRADEMARK | |
← | ← | ← | LEFTWARDS ARROW | |
↑ | ↑ | ↑ | UPWARDS ARROW | |
→ | → | → | RIGHTWARDS ARROW | |
↓ | ↓ | ↓ | DOWNWARDS ARROW | |
♠ | ♠ | ♠ | BLACK SPADE SUIT | |
♣ | ♣ | ♣ | BLACK CLUB SUIT | |
♥ | ♥ | ♥ | BLACK HEART SUIT | |
♦ | ♦ | ♦ | BLACK DIAMOND SUIT |
Referência de símbolos completa