Digit Eight

8

Shortcodes

Copy useful codes for digit eight symbol 8 to use in websites, apps, blogs, and docs.

Unicode
U+0038
Alt Code
56
HTML Code
8
HEX Code
8
CSS Code
\0038
JS/JSON
\u0038
Unix/C/PHP/JAVA
0x38
URL-encode
8

Customize Digit Eight

Customize 8, download it as SVG or PNG, or copy the generated HTML snippet.

8
  

How to use Digit Eight Symbol in HTML, CSS, and JS

Insert in HTML

1. Direct symbol:
<span>8</span>
HTML Code:
<span>&#56;</span>
HEX Code:
<span>&#x0038;</span>

Add with CSS

.digit-eight::before {
  content: '\\0038';
}

Set it in JavaScript

document.querySelector('.digit-eight').textContent = '8';
copied