Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the HTML character entity for the # sign?

What's the HTML character entity for the # sign? I've looked around for "pound" (keeps returning the currency), and "hash" and "number", but what I try doesn't seem to turn into the right character.

like image 491
chimerical Avatar asked Jun 11 '10 18:06

chimerical


People also ask

What is character entity HTML?

An HTML entity is a piece of text ("string") that begins with an ampersand ( & ) and ends with a semicolon ( ; ) . Entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces).

What is the HTML entity number for the copyright symbol?

The HTML copyright symbol is represented by © or ©.

How do I show the symbol in HTML?

When you want to insert a special character, select Insert > HTML > Special Characters. From there are you presented with a few of the most common, or you can choose “Other” to view all the characters available. Simply select the character you would like to insert and the code is inserted for you.


2 Answers

You can search it on the individual character at fileformat.info. Enter # as search string and the 1st hit will lead you to U+0023. Scroll a bit down to the 2nd table, Encodings, you'll see under each the following entries:

 HTML Entity (decimal)  # HTML Entity (hex)      # 
like image 83
BalusC Avatar answered Oct 19 '22 12:10

BalusC


For # we have #.

Bear in mind, though, it is a new entity (IE9 can't recognize it, for instance). For wide support, you'll have to resort, as said by others, the numerical references # and, in hex, &#x23.

If you need to find out others, there are some very useful tools around.

like image 38
acdcjunior Avatar answered Oct 19 '22 14:10

acdcjunior