This page is informative

This page is hosted by GeoCities


LinkExchange
LinkExchange Member Free Home Pages at GeoCities

THE COMPLETE LIST OF HTML ESCAPE CODES


For when the letters on your keyboard just aren't enough!

break

If there's anything on this page that you don't understand, then just use the new form to ask me about it.

break

So what's all this about escape codes? Well, the first point to make is that this section is definitely not for beginners: it is a reference for any HTML authors who want to use escape codes. An escape code is a way of writing a character without using that character. I'll explain why you should want to do that in a moment. The syntax (or structure) of an HTML escape code is:

&#number;
The word "number" is replaced by different numbers to make different escape codes.
eg. 
This is the first escape code, and it produces the character , a small box.
There are three main reasons that you would want to use escape codes in HTML:

  1. Using special characters, like ™, that haven't got a key on the keyboard that you can just press.
  2. Writing foreign words or phrases. Escape codes include all letters in European languages (I think). As an example, I'll give you a flavour of my French (note the accents):
    J'ai regardé la télévision.
    
    By the way, that means "I watched the television".
  3. Illustrating HTML tags. This use is also explained in the "My Comments" section of the table. There must be about 50 examples of this use in parts 1 and 2 of main guide to HTML. Let's say you want to write a Web page that proclaims, "Underlining text in HTML is easy: you just have to put <U> before the text you want to underline, and </U> at the end of the text you want to underline". Well how do you do that without the tags disappearing and the text actually becoming underlined? If you haven't guessed, the answer is "Use escape codes!". If you just type in
    Put <U> before the text, and </U> after the text.
    
    then it will come out as
    Put  before the text, and  after the text.
    
    To get the sentence to come out as you want it, you must use escape codes:
    Put &#60;U&#62; before the text, and &#60;/U&#62; after the text.
    
Before I present you with the table, I'll just tell you that some of the more commonly used escape codes have short-cuts. For example, you can use &#60; to get the < sign, but you can also refer to it by its name. It is called the "Less Than" sign, so an alternative escape code for it is:
&lt;
This is usually easier to remember than &#60;. Note, when you refer to a character by its name, there is no # sign in the escape code.
I have put the short-cuts for the most popular escape codes in bold, as the last line in my comment next to the character, so look out for them.
OK, without further ado, here's the table.

NumberCharacterMy comments
1-8This means that the numbers 1 through 8 produce the symbol .
9-13 The symbol produced here is not a space, and the code does
work. The symbol produced is the null symbol. It is pure
nothingness, and has no real use on a Web page.
14-31The box is back in town.
32 Another number that makes the null symbol.
33!From here down to 126 are just punctuation marks and letters,
which aren't very interesting, with two exceptions...
34"Short-cut: &quot;
35#
36$
37%
38&Short-cut: &amp;
39'
40(
41)
42*
43+
44,
45-
46.
47/
480
491
502
513
524
535
546
557
568
579
58:
59;
60<OK, here is exception No.1 (Americans, read "#1" for "No.1")
Why is this a useful code? Because the < character is what we use
to make tags! This code allows us to put tags like <H1> onto the
page without the tag being read by the browser. Clever, eh?
For example, <B>This is not in bold!</B>
Short-cut: &lt;
61=
62>This is the other half of <, which we saw just a minute ago.
Short-cut: &gt;
63?It's simple stuff again from here down to 126.
64@
65A
66B
67C
68D
69E
70F
71G
72H
73I
74J
75K
76L
77M
78N
79O
80P
81Q
82R
83S
84T
85U
86V
87W
88X
89Y
90Z
91[
92\
93]
94^
95_
96`
97a
98b
99c
100d
101e
102f
103g
104h
105i
106j
107k
108l
109m
110n
111o
112p
113q
114r
115s
116t
117u
118v
119w
120x
121y
122z
123{
124|
125}
126~
127That box is back...again!
128-129N/AI've marked these with N/A (meaning Not Applicable) because
these codes do not produce normal characters; they do not
produce null characters; they do not produce spaces. They just
do not work. If you typed in &#128; in the source of a Web
page, then &#128; is exactly what would appear on the screen,
just like that!
Note: Microsoft Internet Explorer usually replaces codes
that don't work with our old favourite, the box, .
130
131ƒI think this is the f that is used in maths to denote a function.
There's quite a few interesting symbols that you'll see come
up. It's not my job to explain what they all mean (I don't
know all of them, anyway), so I won't explain them.
132
133
134
135
136ˆ
137
138Š
139
140Œ
141N/AHere's a group of another four codes that can't be
bothered to produce a character.
145Here we return to some useful codes.
146
147
148
149
150
151
152˜
153I'll make a comment next to this one just to draw attention to it
because I expect a lot of people want to know the code for it.
154š
155
156œ
157N/AHere's another two codes that are non-workers.
159Ÿ
160 This is an interesting one. It's not some kind of weird technical
symbol. It is, in fact, a space. "A space?!", I hear you cry, "What
use is that?!". Well, it's actually very useful: Unless you want to
learn some unusual tags, there is no way to use more than one
space in text. This code allows you to do that. For example, if
you want to put three spaces between two words (I don't know
why you'd want to do that, but anyway...) you could type
hello&#160;&#160;&#160;everybody, and it would come out as
hello   everybody.
Short-cut: &nbsp;
161¡
162¢
163£
164¤
165¥
166¦
167§I'm adding a comment to this symbol because I think it's curly
design looks kinda cool.
168¨
169©This copyright sign is very popular, and obviously it's useful as
well.
Short-cut: &copy;
170ª
171«
172¬
173­
174®I should also point out this one because a lot of people like to
use it.
Short-cut: &reg;
175¯
176°
177±
178²
179³
180´
181µ
182
183·
184¸
185¹
186º
187»
188¼Here's some fractions for you.
189½
190¾
191¿Care for a whole bunch of foreign characters? You got it...
192À
193Á
194Â
195Ã
196Ä
197Å
198Æ
199Ç
200È
201É
202Ê
203Ë
204Ì
205Í
206Î
207Ï
208Ð
209Ñ
210Ò
211Ó
212Ô
213Õ
214Ö
215×
216Ø
217Ù
218Ú
219Û
220Ü
221Ý
222Þ
223ß
224à
225á
226â
227ã
228ä
229å
230æ
231ç
232è
233é
234ê
235ë
236ì
237í
238î
239ï
240ð
241ñ
242ò
243ó
244ô
245õ
246ö
247÷This doesn't look much like a foreign character to me. I think it
belongs in the maths section, but I don't make the rules up.
248ø
249ù
250ú
251û
252ü
253ý
254þ
255ÿ
256-337ĀWhy does the question mark get so many codes? I don't know,
but I'll tell you one thing: it's gonna get more...
338ŒWe come across an island, two symbols long, in a sea of
question marks. The island is made up of symbols that already
have codes. I think that whoever invented the numbering system
must have been high at the time.
339œWe reach the other side of the island...
340-351Ŕ...and the sea of mystery begins again.
352ŠAnother brief break from the question marks.
353š
354-375ŢThe questions! So many unanswered questions! I can't take it
any longer! Ahhh!
376ŸIt's completely crazy! A Ÿ stuck out in the middle of nowhere!
377-401ŹAnother 25 codes you can use to get a question mark. Now
there's something that really is useless!
402ƒYep, it's another symbol that's repeated randomly for no
obvious reason. This time it's the f that we met before using
the code &#131;.
403-???ƓAnd I think you'll find that brings us to a close. From here on we just get
question marks. Perhaps the symbols are supposed to be truly
symbolic, signifying the infinite space and time that is still a deep,
dark mystery of life. Then again, perhaps it's just an untidy system.
You decide.

If you have comments or suggestions, or you just need to sound off about something, feel free to contact me.

break

To go back to the home page just Click here.

break

© 1997, Green Mac Productions

Green Mac

Don't hit Back when you see it's Green Mac !

1