HTML Entity for Star Outlined (☆)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+2606

What You'll Learn

How to display Star Outlined (☆) in HTML using named, hexadecimal, decimal, and CSS escape methods. This character is U+2606 (WHITE STAR) in the Miscellaneous Symbols block (U+2600–U+26FF)—an outlined white star for ratings, UI design, and decorative content.

Render it with ☆, ☆, ☆, or CSS \2606. Pair with filled black star ★ (★, U+2605) for active vs inactive rating stars.

⚡ Quick Reference — Star Outlined

Unicode U+2606

Miscellaneous Symbols

Hex Code ☆

Hexadecimal reference

HTML Code ☆

Decimal reference

Named Entity ☆

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2606
Hex code       ☆
HTML code      ☆
Named entity   ☆
CSS code       \2606
Meaning        White star (outlined)
Pair with      U+2605 = black star (★, ★)
Not the same   U+22C6 = Star Operator (⋆)
               U+2729 = Stress Outlined White Star (✩)
Block          Miscellaneous Symbols (U+2600–U+26FF)
1

Complete HTML Example

A simple example showing ☆ using the named entity, hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\2606";
  }
 </style>
</head>
<body>
<p>Rating (named): &starf;&starf;&starf;&starf;&star;</p>
<p>Rating (hex): &#x2605;&#x2605;&#x2605;&#x2606;&#x2606;</p>
<p>Outline (decimal): &#9734;</p>
<p id="point">Empty star </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

Star Outlined (☆) is supported in all modern browsers when fonts include Miscellaneous Symbols glyphs:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari3.2+

👀 Live Preview

See the outlined star in rating and decorative contexts:

Single symbol
Rating (4 of 5) ★★★★☆
Named entity &starf;&starf;&star;&star;&star;
Not the same as ☆ (outline)  |  ★ (filled)  |  ⋆ (math operator)
Numeric refs &star; &#x2606; &#9734; \2606

🧠 How It Works

1

Named HTML Entity

&star; is the semantic named entity for the white outlined star—the most readable option in source HTML.

HTML markup
2

Hexadecimal Code

&#x2606; uses Unicode hexadecimal 2606 to display ☆ in HTML markup.

HTML markup
3

Decimal HTML Code

&#9734; uses decimal Unicode value 9734 for the same character.

HTML markup
4

CSS Entity

\2606 is used in CSS stylesheets in the content property of pseudo-elements like ::after.

CSS stylesheet
=

Same visual result

All four methods produce . Unicode U+2606 in Miscellaneous Symbols (U+2600–U+26FF).

Use Cases

Star Outlined (☆) commonly appears in:

⭐ Rating systems

Empty or inactive stars in review and feedback interfaces.

🎨 Decorative design

Logos, banners, and creative layouts with star imagery.

💻 UI elements

Buttons, badges, and icons in web and mobile applications.

🌟 Favorites

Unselected favorite or bookmark indicators.

📚 Educational content

Tutorials and guides demonstrating HTML star entities.

🌃 Landing pages

Headers and hero sections with decorative star accents.

💡 Best Practices

Do

  • Prefer &star; for readable HTML source code
  • Pair ☆ with ★ (&starf;) for filled vs empty ratings
  • Add accessible labels (e.g. aria-label) on interactive star controls
  • Use CSS to scale stars consistently in rating rows
  • Pick one reference style and stay consistent per project

Don’t

  • Use padded Unicode notation like U+02606—the correct value is U+2606
  • Use CSS \02606 with a leading zero—prefer \2606
  • Confuse ☆ with Black Star ★ or Star Operator ⋆
  • Rely on stars alone for accessibility without text alternatives
  • Put CSS escape \2606 in HTML text nodes

Key Takeaways

1

Four ways to render U+2606 in HTML and CSS

&star; &#x2606;
2

For CSS stylesheets, use \2606 in the content property

3

U+2606 — WHITE STAR (☆)

4

Pair with Black Star ★ (&starf;) for rating UIs

❓ Frequently Asked Questions

Use &star; (named), &#x2606; (hex), &#9734; (decimal), or \2606 in CSS content. All four render ☆.
U+2606 (WHITE STAR). Miscellaneous Symbols (U+2600–U+26FF). Hex 2606, decimal 9734, named entity &star;.
☆ (U+2606, &star;) is a white outlined star. ★ (U+2605, &starf;) is a filled black star. Rating UIs typically use ★ for active stars and ☆ for inactive ones.
For rating systems (empty/inactive stars), decorative content, UI icons, favorites/bookmarks, visual design, and any context where an outlined star is appropriate.
No. ☆ (U+2606) is WHITE STAR in Miscellaneous Symbols. ✩ (U+2729) is STRESS OUTLINED WHITE STAR in Dingbats—a different glyph and code point.

Explore More HTML Entities!

Discover 1500+ HTML character references — stars, symbols, and more.

All HTML Entities →

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