HTML Entity for Star David (✡)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+2721

What Is Star David?

Star of David (✡) is the Unicode character at U+2721 in Dingbats. Official name: STAR OF DAVID (also called Magen David or a hexagram). It is a six-pointed star formed by two overlapping triangles.

Remember
Character     ✡
Unicode       U+2721
Named entity  (none)
Hex entity    ✡
Decimal       ✡
CSS escape    \2721
Not the same  ★ · ☪ · ≛

Prefer ✡ or ✡ in HTML markup. You can also type ✡ in UTF-8. For a five-pointed filled star, use ★ (★) instead.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entityNoneUse numeric or type the character
Direct character✡HTML text (UTF-8)
Hex entity✡HTML markup (preferred)
Decimal entity✡HTML markup
CSS escape\2721Stylesheet content
Black star (related)★ (U+2605)Named ★

When to Use Which

SituationUse
Star of David / hexagram✡ or type ✡
Filled five-pointed star★ (★)
Star and crescent☪ (U+262A)
Star equals (math)≛ (U+225B)
Generated text via ::before / ::aftercontent: "\2721"

Live Preview

Star of David rendered alone and next to related symbols.

Large glyph ✡
Notation Symbol: ✡
Compared ✡  |  ★  |  ☪
Hint Compare: David ✡ | Star ★ | Crescent ☪
With entities Hex: ✡ | Decimal: ✡

Complete HTML Example

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

Hex + Decimal + CSS + Typed

Four ways to produce ✡, plus a short label example. No named entity exists.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Star David (✡)</title>
  <style>
    #point::after {
      content: "\2721";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x2721;</p>
  <p>Using HTML Code: &#10017;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: ✡</p>
  <p>Notation: Symbol &#x2721;</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+2721 → &#x2721; in HTML. Preferred numeric form when you need an entity.

2. Decimal: same code point as 10017 → &#10017;. Same glyph as hex.

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

4. Typed / notation: paste ✡ in UTF-8, or write Symbol &#x2721; for a short label.

5. No named entity: HTML5 does not define a name for U+2721 — use numeric references or type the character.

Pitfalls & Tips

Common mistakes when working with U+2721.

vs ★

Not a five-pointed black star

U+2605 (★, &starf;) is a filled five-pointed star. U+2721 is the six-pointed Star of David.

vs ☪

Not star and crescent

☪ (U+262A) is a different cultural symbol. Do not treat them as interchangeable.

Named

No named HTML entity

There is no &starofdavid; for U+2721. Use &#x2721; or &#10017;.

Fonts

Needs Dingbats coverage

Some UI fonts omit Dingbats. Prefer a stack that includes a symbols or emoji font if the glyph must always show.

CSS vs HTML

Do not mix escapes

\2721 belongs in CSS strings. &#x2721; / &#10017; belong in HTML.

A11y

Name the symbol in context

Screen readers may announce this unevenly. Prefer nearby plain-language text when the glyph carries cultural meaning.

Browser Support

Star of David (U+2721) and its entity forms (&#x2721;, &#10017;, CSS \\2721) are supported in all mainstream browsers. Visible glyphs depend on Dingbats font coverage.

✓ Universal support

Star David (&#x2721;)

Encode with hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

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+2721 / entities Full support

Bottom line: Prefer &#x2721; or &#10017; in HTML. Use \\2721 only inside CSS content. There is no named entity.

Key Takeaways

  • Unicode: star of David is U+2721 (decimal 10017) — glyph ✡.
  • HTML: no named entity — use &#x2721; / &#10017; / type ✡.
  • CSS: use \2721 inside content for generated text.
  • Meaning: ✡ is a hexagram — not ★ (&starf;), not ☪.

One line: U+2721 → &#x2721; / &#10017; / CSS \2721 (no named entity).

Frequently Asked Questions

Use &#x2721; (hex), &#10017; (decimal), type ✡ directly in UTF-8, or the CSS escape \2721 in content. There is no named HTML entity.
U+2721 (STAR OF DAVID). Hex 2721, decimal 10017. It belongs to Dingbats (U+2700–U+27BF).
No. Use numeric references &#x2721; or &#10017;, or type ✡ in UTF-8.
No. ✡ is U+2721 (star of David / hexagram). ★ is U+2605 (&starf;). ☪ is U+262A (star and crescent).
Use it when you need the hexagram / Star of David glyph. For a plain five-pointed filled star, use &starf; instead.
HTML entities (&#10017; or &#x2721;) go in markup. The CSS escape \2721 goes in stylesheet strings (usually content on ::before/::after).

Did you know?

Star of David is Unicode U+2721 (decimal 10017) — glyph ✡ in Dingbats (U+2700–U+27BF). Official name: STAR OF DAVID (also called Magen David / hexagram). HTML5 has no named entity — use &#x2721; or &#10017;. Do not confuse with black star U+2605 (&starf;, ★) or star and crescent U+262A (☪).

Next: Star Equals

Learn the HTML entity for star equals (U+225B).

Continue 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