Is there an HTML code for the text checkbox ''?
EDIT: So to be clear, I need the HTML Number for the symbol , not the form element checkbox.
Is there an HTML code for the text checkbox ''?
EDIT: So to be clear, I need the HTML Number for the symbol , not the form element checkbox.
i think it will be helpful to you
<input type="checkbox" name="option1" value="valu1">
this will do:
▢
it is ▢
or
◻
the ◻
Two with shadow:
❏
❑
as ❏ and ❑
see it at http://jsfiddle.net/S2QCt/16/
This is the code for the character you posted in your question: 
But that's not a checkbox character...
U+F0FE
is not a checkbox, it's a Private Use Area character that might render as anything. Whilst you can certainly try to include it in an HTML document, either directly in a UTF-8 document, or as a character reference like 
, you shouldn't expect it to render as a checkbox. It certainly doesn't on any of my browsers—although on some the ‘unknown character’ glyph is a square box that at least looks similar!
So where does U+F0FE come from? It is an unfortunate artifact of Word RTF export where the original document used a symbol font: one with no standard mapping to normal unicode characters; specifically, in this case, Wingdings. If you need to accept Word RTF from documents still authored with symbol fonts, then you will need to map those symbol characters to proper Unicode characters. Unfortunately that's tricky as it requires you to know the particular symbol font and have a map for it. See this post for background.
The standardised Unicode characters that best represent a checkbox are:
☐
, U+2610 Ballot box☑
, U+2611 Ballot box with checkIf you don't have a Unicode-safe editor you can naturally spell them as ☐
and ☑
.
(There is also U+2612 using an X, ☒
.)
Just make sure that your HTML file is encoded with UTF-8 and that your web server sends a HTTP header with that charset, then you just can write that character directly into your HTMl file.
http://www.w3.org/International/O-HTTP-charset
If you can't use UTF-8 for some reason, you can look up the codes in a unicode list such as http://en.wikipedia.org/wiki/List_of_Unicode_characters and use ꯍ
where ABCD is the hexcode from that list (U+ABCD).