HTML Entity for Star Operator (⋆)

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

What Is Star Operator?

Star operator (⋆) is the Unicode character at U+22C6 in Mathematical Operators. Official name: STAR OPERATOR — a math star used for products, special operations, and academic notation.

Remember
Character     ⋆
Unicode       U+22C6
Named entity  ☆  (also ⋆)
Hex entity    ⋆
Decimal       ⋆
CSS escape    \22C6
Not the same  ★ · ☆ · ≛

Prefer ☆ in HTML markup. Numeric forms and typing ⋆ in UTF-8 also work. For a filled rating star, use ★ (★) instead.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity☆HTML markup (preferred)
Named alias⋆HTML markup (same glyph)
Direct character⋆HTML text (UTF-8)
Hex entity⋆HTML markup
Decimal entity⋆HTML markup
CSS escape\22C6Stylesheet content

When to Use Which

SituationUse
Math star operator / star product☆ or type ⋆
Filled five-pointed star (UI / ratings)★ (★)
Outlined / white star☆ (U+2606)
Star equals (math)≛ (U+225B)
Generated text via ::before / ::aftercontent: "\22C6"

Live Preview

Star operator rendered alone and next to related symbols.

Large glyph ⋆
Notation A ⋆ B
Compared ⋆  |  ★  |  ☆
Hint Compare: Operator ⋆ | Black ★ | Outlined ☆
With entities Named: ☆ | Hex: ⋆ | Decimal: ⋆

Complete HTML Example

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

Named + Hex + Decimal + CSS + Typed

Five ways to produce ⋆, plus a short notation example.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Star Operator (⋆)</title>
  <style>
    #point::after {
      content: "\22C6";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &star;</p>
  <p>Using Hex Code: &#x22C6;</p>
  <p>Using HTML Code: &#8902;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: ⋆</p>
  <p>Notation: A &star; B</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &star; (or &Star;) is the clearest HTML form for U+22C6.

2. Hex: U+22C6 → &#x22C6; in HTML. Same glyph as the named entity.

3. Decimal: same code point as 8902 → &#8902;. Same glyph as hex and named.

4. CSS: use \22C6 in content (not an HTML entity). #point::after appends that ⋆ after the paragraph text.

5. Typed / notation: paste ⋆ in UTF-8, or write A &star; B for a short math label.

Pitfalls & Tips

Common mistakes when working with U+22C6.

vs ★

Not a filled rating star

U+2605 (★, &starf;) is for UI and ratings. U+22C6 is a mathematical operator — prefer &star; for math.

vs ☆

Not an outlined star

☆ (U+2606) is a white / hollow star for decoration. ⋆ is thinner and meant for formulas.

Name

Do not confuse &star; with &starf;

&star; → ⋆ (operator). &starf; → ★ (filled star). The trailing f matters.

Fonts

Needs math symbol coverage

Some UI fonts omit Mathematical Operators. Prefer a stack that includes a math or symbols font if the glyph must always show.

CSS vs HTML

Do not mix escapes

\22C6 belongs in CSS strings. &star; / &#x22C6; / &#8902; belong in HTML.

A11y

Name the operator in context

Screen readers may announce this unevenly. Prefer nearby plain-language text such as “star product” when the operator carries meaning.

Browser Support

Star operator (U+22C6) and its entity forms (&star;, &#x22C6;, &#8902;, CSS \\22C6) are supported in all mainstream browsers. Visible glyphs depend on Mathematical Operators font coverage.

✓ Universal support

Star Operator (&#x22C6;)

Encode with named, 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+22C6 / &star; Full support

Bottom line: Prefer &star; in HTML. Use \\22C6 only inside CSS content. Do not confuse with &starf; (★).

Key Takeaways

  • Unicode: star operator is U+22C6 (decimal 8902) — glyph ⋆.
  • HTML: prefer &star; — also &Star; / &#x22C6; / &#8902;.
  • CSS: use \22C6 inside content for generated text.
  • Meaning: ⋆ is a math operator — not ★ (&starf;), not ☆.

One line: U+22C6 → &star; / &#x22C6; / &#8902; / CSS \22C6.

Frequently Asked Questions

Use &star; (named), &#x22C6; (hex), &#8902; (decimal), type ⋆ directly in UTF-8, or the CSS escape \22C6 in content. Prefer &star; in normal HTML.
U+22C6 (STAR OPERATOR). Hex 22C6, decimal 8902. It belongs to Mathematical Operators (U+2200–U+22FF).
Yes. Use &star; (or the alias &Star;). Numeric forms &#8902; and &#x22C6; also work.
No. ⋆ is U+22C6 (&star;, math star operator). ★ is U+2605 (&starf;). ☆ is U+2606 (white / outlined star).
Use it for mathematical star products, special operators, and academic notation — not as a substitute for a filled rating star ★ or an outlined star ☆.
HTML entities (&star;, &#8902;, or &#x22C6;) go in markup. The CSS escape \22C6 goes in stylesheet strings (usually content on ::before/::after).

Did you know?

Star operator is Unicode U+22C6 (decimal 8902) — glyph ⋆ in Mathematical Operators (U+2200–U+22FF). HTML5 names it &star; (also &Star;). Official name: STAR OPERATOR. Do not confuse with black star U+2605 (&starf;, ★) or white star U+2606 (☆).

Next: Star Outlined

Learn the HTML entity for outlined star (U+2606).

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