What is ASCII?
ASCII stands for American Standard Code for Information Interchange. It is a standard whereby symbols are represented by numbers in the computer. Every ASCII character can be represented by a number in the form of a decimal, hex, or even binary.
What is hex?
Hex is short for hexadecimal, which is a base 16 number system.
It is useful for programmers to see these values when they are working on the bit level. That’s why the binary is included, because those eight binary digits are how the computer sees each character. One example of how this is useful is for encryption projects where the programmer is manipulating the character on the bit level.
The HTML features an onload call to clearOnReload() so that the text fields are empty every time the page is reloaded:
<body bgcolor="#cccccc" onload="clearOnReload()">
This app also has a feature such that every time the app is reloaded, the cursor moves to the input box. This is achieved by using
autofocus="autofocus" in the input tag.
As can be seen from the code, this app supports only the ASCII range that is available on most American keyboards. Decimal values 0-31 and 127 are non-keyboard characters and are therefore not supported. Here is what an ASCII chart looks like (minus the binary values):
Here is the app, loaded in an iframe:
This can also be viewed directly on my website here: