![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTML EntitiesMost web pages can only display a limited number of characters naturally; these tend to be standard letters, numbers, and punctuation, along with a few symbols. Often times, however, you may wish to display characters which, if typed directly into HTML, might not appear correctly on the rendered web page. In order to show these special characters, we use things called HTML Entities. An entity might be any number of special symbols that are not found directly on the keyboard. Here are some examples of entities:
Try typing those with just your keyboard! So, how do you make these? The basic rule is this: Begin with an Ampersand ( & ) and end with a semicolon ( ; ). Between them, put the code for the entity. You can either use a number code (e.g., "#165") or a special word (e.g. "yen") in the middle. The examples I chose--¥ and ¥ will both show the yen sign: ¥ and ¥. You will find a list of many of the entities on this page in WikiPedia; the special words are shown in the "Name" column, and the number codes are in parentheses in the "Unicode code point (decimal)" column. I will display just a few of them here:
Go ahead and try out some entities below! Notice, by the way, that some only work in certain fonts. If you take away the Arial font, some of the later entities (e.g., the arrows and poker shapes) won't work. ![]()
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
![]() |