Back to the start of this explanation
Sometimes it is necessary to make a tag appear in a text as it is, without it being interpreted as a tag by the browser. That will primarily happen in a text created in HTML, which is intended to explain HTML, such as this one.
The so-called entities are a way to achieve this. These are codes that begin with an & (ampersand), and end in a ; (semicolon). In between are some letters, or a code number, which indicate a character.
Some examples:
Encoding | Character |
---|---|
& | & |
" | " |
< | < |
> | > |
® | ® |
© | © |
­ | Suggestion for where to hyphenate if necessary |
ü | ü |
ë | ë |
á | á |
à | à |
ê | ê |
Ê | Ê |
ã | ã |
õ | õ |
à | à |
Õ | Õ |
ç | ç |
Ç | Ç |
ß | ß |
æ | æ |
œ | œ |
Æ | Æ |
Œ | Œ |
å | å |
Å | Å |
ø | ø |
Ø | Ø |
For many more options see also these lists for Latin 1 and Latin 2.
Accented letters may also be entered directly, encoded in ISO-8859 or Unicode for example, provided this encoding is correctly indicated in the head of the document, using an appropriate meta tag.
The entities for "less than" and "greater than" make it
possible to show tags. If the HTML has:
<p>
the browser will display:
<p>
so the reader understands that in the HTML that is described, the tag
for "paragraph" should appear.
Back to the start of this explanation