| Symbol Name | Square With Top Half Black |
| Unicode Version | 4.1 |
| Unicode | U+2B12 |
| Unicode block | |
| General category | Other Symbol (So) |
| CSS Code | \2B12 |
| Hex Code | 0x2B12 |
| HTML Code | ⬒ |
| LaTeX | \text{SQUAREWITHTOPHALFBLACK} |
| Symbol | ⬒ |
| URL encode (UTF-8 percent) | %E2%AC%92 |
| Spoken / screen reader name | Square With Top Half Black |
| UTF-8 | E2 AC 92 |
| UTF-16 | 2B12 |
| UTF-32 | 00002B12 |
1\documentclass{article}2\usepackage{pifont}3\text{SQUAREWITHTOPHALFBLACK}4\end{document}You can type the square with top half black symbol on most modern devices with the help of following methods:
Alt + 11026 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "square with top half black", or use Unicode Hex Input with 2B12.
Ctrl + Shift + U, type 2b12, then Enter (layout-dependent).
Paste from this page, use text replacement, or pick from the symbol keyboard.
Paste from this page or use a keyboard with geometric symbol support.
1span.square-with-top-half-black::before { content: "\2B12"; }1<span>⬒</span>Square With Top Half Black symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | '\u2B12' or String.fromCodePoint(11026) |
| Python | '\N{SQUARE WITH TOP HALF BLACK}' or chr(11026) |
| Rust | '\u{2B12}' |
| C / C++ | UTF-8 source or wchar_t with U+2B12 |
| Go | string(rune(0x2B12)) |
| Ruby | "\u{2B12}" |