Assignment 7: Media
Escape Character Codes
Escape codes always start with an ampersand (
&) character, the number sign (
#) with individual code, and finish with a semicolon (
All characters have a numerical, decimal-based (in addition to hexadecimal), value. Using escape character codes in HTML text is straightforward. Simply replace the character you want with its decimal-value equivalent in the text.
For example, we could write the word “CAT” by wrapping the individual letters’ decimal values (67, 65, and 84) in the escape code values: