The Mudcat Café TM
Thread #146617   Message #3395798
Posted By: JohnInKansas
27-Aug-12 - 06:03 AM
Thread Name: Piano keys colour change
Subject: RE: Piano keys colour change
It should be noted that "it works" for posting in html here, but it may NOT WORK for someone reading what you post if they don't have a font installed on their own machine that includes the character.

This shouldn't be a problem for Windows users with WinXP and later, since the default fonts installed generally will have "commonly used characters" but some more "exotic" characters do cause problems for readers, even if they "post good" for the one who keys them in.

HTML is capable of reading either decimal or hexadecimal numbers.

The initial "&" says "what follows is a code"

The "#" that comes next says "the code is a number"

You can add the "x" to say "the number is a hexadecimal number," or if the "x" is omitted the the interpreter reads the number as a decimal.

The final ";" says "the code has ended.

"&#(decimal number);" gives the same result as "&#x(hex number);" in all cases - in html.

John