HTML Entity for Black Sun Rays (☀)

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

What You'll Learn

How to display Black Sun Rays (☀) in HTML and CSS. This character is U+2600 in the Miscellaneous Symbols block (U+2600–U+26FF), approved in Unicode 1.1 (1993). Its Unicode name is BLACK SUN WITH RAYS—also used for clear weather or sunny themes. The related symbol Sun (☉ U+2609) is a sun disc without rays, used in astronomy and astrology.

There is no named HTML entity for U+2600. Use ☀ or ☀ in markup, or \2600 in stylesheet content. You can append Variation Selector-16 (U+FE0F) for colorful emoji display (☀️) in supporting contexts. Pair weather glyphs with visible text or aria-label (for example “Sunny” or “Clear weather”).

⚡ Quick Reference — Black Sun Rays

Unicode U+2600

Miscellaneous Symbols (U+2600–U+26FF)

Hex Code ☀

Hexadecimal reference

HTML Code ☀

Decimal reference

Named Entity

None (use numeric refs)

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2600
Hex code       ☀
HTML code      ☀
Named entity   —
CSS code       \2600
1

Complete HTML Example

This example shows U+2600 using hexadecimal and decimal character references, plus a CSS content escape on a pseudo-element:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2600";
  }
 </style>
</head>
<body>
<p>Black Sun Rays using Hexa Decimal: &#x2600;</p>
<p>Black Sun Rays using HTML Code: &#9728;</p>
<p id="point">Black Sun Rays using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+2600 is widely supported in modern browsers; sun glyph artwork varies by typeface:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the glyph at different sizes and beside the sun-without-rays symbol (font-dependent):

Large glyph
Weather UI ☀ Sunny  |  ☁ Cloudy
Sun pair (U+2600 & U+2609) ☀ ☉
Caption U+2600 is BLACK SUN WITH RAYS; U+2609 is SUN in Miscellaneous Symbols.
Monospace refs &#x2600; &#9728; \2600

🧠 How It Works

1

Hexadecimal Code

&#x2600; references code point U+2600 using hex digits 2600 after the #x prefix.

HTML markup
2

Decimal HTML Code

&#9728; is the decimal equivalent (9728) for the same Black Sun Rays character.

HTML markup
3

CSS Entity

\2600 is the CSS escape for U+2600, used in the content property of ::before or ::after.

CSS stylesheet
=

Same visual result

Hex, decimal, and CSS escapes all produce . There is no named HTML entity for U+2600.

Use Cases

The Black Sun Rays (☀) is commonly used for:

🌤 Weather icons

Weather apps, forecasts, clear-sky indicators, and sunny-day displays.

☀ Sunny themes

Summer content, vacation sites, outdoor activities, and bright design.

🌅 Clear-sky design

Travel, tourism, and nature layouts needing sun or daylight icons.

☀ Daytime indicators

Time-of-day displays, schedule apps, and brightness cues.

🎨 Artistic projects

Decorative headers, nature themes, and design elements.

💬 Social & messaging

Posts about good weather, happy mood, or sunny day vibes.

♿ Accessibility

Pair ☀ with text or aria-label (e.g. “Sunny” or “Clear weather”).

💡 Best Practices

Do

  • Use hex or decimal consistently—there is no named entity for U+2600
  • Pair ☀ with ☉ (sun without rays) or cloud/rain symbols for weather icon sets
  • Append U+FE0F (&#xFE0F;) when you want emoji-style ☀️ where supported
  • Choose fonts that support the Miscellaneous Symbols block (U+2600–U+26FF)
  • Use \2600 only inside CSS content, not inside HTML text nodes
  • Use aria-hidden="true" when purely decorative; add text when meaning matters

Don’t

  • Confuse U+2600 with U+2609 (sun disc) or emoji ☀️ (may use different sequences)
  • Rely on ☀ alone to communicate critical weather or status information
  • Assume every font renders sun symbols crisply at small sizes
  • Use weather glyphs as the only cue without visible text or labels
  • Mix CSS escapes into HTML text nodes (use numeric refs in markup)

Key Takeaways

1

Two numeric references render the same glyph

&#x2600; &#9728;
2

CSS content escape

\2600
3

U+2600 is BLACK SUN WITH RAYS; related Sun symbol U+2609

4

Miscellaneous Symbols block U+2600–U+26FF; no named HTML entity

5

Pair weather glyphs with text or ARIA when meaning must be clear

❓ Frequently Asked Questions

Use &#x2600; (hex), &#9728; (decimal), or \2600 in CSS content. There is no named entity; all valid methods render ☀.
U+2600 (hex 2600, decimal 9728). Miscellaneous Symbols (U+2600–U+26FF). Unicode name BLACK SUN WITH RAYS.
For weather icons, sunny themes, clear-sky design, summer content, bright/daytime indicators, and artistic projects.
Numeric references belong in HTML. The \2600 escape belongs in stylesheets (for example on pseudo-elements). Do not paste CSS escapes into HTML text nodes.
No. Use &#x2600;, &#9728;, or \2600 in CSS depending on whether you are authoring markup or styles.

Explore More HTML Entities!

Discover 1500+ HTML character references — currency symbols, arrows, math operators, emojis, 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