HTML Entity for Digit Seven (7)

Beginner
6 min read
Updated: Sep 2026
1 example
Unicode U+0037

What Is the Digit Seven Entity?

Digit seven (7) is the Basic Latin character at Unicode U+0037. You can type 7 directly in HTML, or write it with a numeric character reference when you need an explicit entity form.

Remember
Character     7
Unicode       U+0037
Hex entity    7
Decimal       7
CSS escape    \0037
Named entity  (none)

All of these produce the same glyph: 7. Prefer typing 7 in normal page text; use entities for CSS content, generated markup, or when encoding must be explicit.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character7HTML text (default choice)
Hex entity7HTML markup
Decimal entity7HTML markup
CSS escape\0037Stylesheet content
Named entity—Not defined in HTML5

When to use which

SituationUse
Normal paragraphs, headings, labelsType 7
Need an entity in HTML source7 or 7
Generated text via ::before / ::aftercontent: "\0037"
Looking for &seven; or similarDoes not exist — use numeric form

Live Preview

Digit seven rendered in common UI contexts.

Inline text You have 7 unread emails.
Large glyph 7
Date / time 2026-07-17 17:07
Monospace index 7, value 7
With entities Hex: 7 | Decimal: 7

Complete HTML Example

One page that shows digit seven with the hex entity, decimal entity, CSS escape, and a typed character. Use View Output or open the live editor.

Hex + Decimal + CSS + Typed

All four ways to produce 7 in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Digit Seven (7) in HTML</title>
  <style>
    #point::after {
      content: "\0037";
    }
  </style>
</head>
<body>
  <p>Digit Seven using Hex Code: &#x37;</p>
  <p>Digit Seven using HTML Code: &#55;</p>
  <p id="point">Digit Seven using CSS Entity: </p>
  <p>Typed directly: 7</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+0037 → &#x37; in HTML. The browser turns it into 7.

2. Decimal: same code point as 55 → &#55;. Same result as hex.

3. CSS: use \0037 in content (not an HTML entity). #point::after appends that 7 after the paragraph text.

4. Typed 7: best for normal text. All four lines show the same digit.

Pitfalls & Tips

Common mistakes when working with digit seven entities.

Named?

No &seven;

HTML5 does not define a named entity for ASCII digits. Use numeric forms.

CSS vs HTML

Do not mix escapes

\0037 belongs in CSS. &#x37; / &#55; belong in HTML.

Lookalikes

Related forms differ

Circled or dingbat sevens (such as ➆) are different Unicode characters — not the same as U+0037.

Default

Type 7 when you can

Entities are for encoding needs — not required for ordinary body text.

Semicolon

End references

Always finish with ; — write &#55;, not &#55.

CSS escape

Pad short hex

In CSS content, prefer \0037 (six hex digits) so the escape does not swallow the next character.

Browser Support

Digit seven (U+0037) and its numeric entity forms (&#x37;, &#55;, CSS \\0037) are supported in all mainstream browsers.

✓ Universal support

Digit Seven (7)

Type 7, or encode with hex, decimal, or CSS escape — same glyph everywhere.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+0037 / entities Full support

Bottom line: Use a typed 7 for normal text. Prefer &#x37; or &#55; in HTML when encoding must be explicit, and \\0037 only inside CSS content.

Key Takeaways

  • Unicode: digit seven is U+0037 (decimal 55).
  • HTML: use &#x37; or &#55; when you need an entity.
  • CSS: use \0037 inside content for generated text.
  • Default: type 7 directly unless encoding requires an entity.

One line: U+0037 → type 7, or encode as &#x37; / &#55; / CSS \0037.

Frequently Asked Questions

Use &#x37; (hex), &#55; (decimal), or the CSS escape \0037 in the content property. All render the digit seven (7). In most cases you can also type 7 directly.
U+0037 (hex 0037, decimal 55). It belongs to the Basic Latin (ASCII) block.
No. ASCII digits like 7 do not have named HTML entities in HTML5, so you should use numeric references like &#55; or &#x37; when you need an entity form.
Use entities when generating content in CSS, when you want explicit encoding, or when outputting into contexts where escaping is required. For normal body text, typing 7 directly is usually best.
HTML entities (&#55; or &#x37;) go in markup. The CSS escape \0037 is used in stylesheets (usually in the content property of ::before/::after). Both render 7.
No. Digit seven is U+0037. Circled and other stylized sevens (such as dingbat circled sans-serif ➆) are different Unicode characters.

Did you know?

Digit seven is Unicode U+0037 (decimal 55). HTML5 has no named entity for it — use &#x37; or &#55; when you need an entity form.

Next: 7 Dingbat Circled Sans Serif

Learn the HTML entity for dingbat circled sans-serif digit seven (➆) — a different Unicode character from digit seven.

7 Dingbat Circled Sans Serif tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful