I want to display the symbols commonly known as h and h-bar. This is for Safari and iOS. What do I enter into my html?
If there is a table of such things somewhere, a reference to it would be great. Thanks!
Webmasters Stack Exchange is a question and answer site for webmasters. It only takes a minute to sign up.Sign up to join this community
Regarding information about such things in general, the Unicode standard is authoritative in matters of character codes. But it does not prescribe the use of characters. Various sources need to be consulted; in matters of mathematical and physical notations, you can consult the ISO 80000 series of standards (available from standards organizations for rather high prices).
The Planck constant can be viewed as letter h in italic, but the non-normative well-written advisory document Unicode in XML and other Markup Languages says: “to indicate Planck's constant one should use U+210E and not
<i>h</i>” (the logic behind this is not simple, but logical). For the reduced Planck constant, there really is no choice. So use the characters U+210E PLANCK CONSTANT and U+210F PLANCK CONSTANT OVER TWO PI. The way to enter them depends on the authoring context.
In modern authoring, you should be using a Unicode-enabled editor and should be able to insert these characters directly. Failing this, the character references mentioned by toomanyairmiles can be used.
Then there’s the character problem. These special characters have limited support in fonts. You should probably analyze their availability and suggest a list of fonts in CSS, as outlined in my Guide to using special characters in HTML.
Note that the reduced Planck constant character has varying shapes (glyphs), with either horizontal or slanted stroke over the letter h. The glyph in the relevant Unicode chart has a slanted stroke. This is not normative but suggestive, and it makes it clear that the character is different from h with stroke (ħ, a letter used in some natural languages).