HTML Entity for Right Arrow From Bar (↦)

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

What You'll Learn

How to display the Right Arrow From Bar (↦) in HTML using the named entity, hexadecimal, decimal, and CSS escape methods. This symbol is U+21A6 (RIGHTWARDS ARROW FROM BAR) in the Arrows block (U+2190–U+21FF)—the classic maps-to arrow used in mathematics, function mapping, navigation, and technical notation.

Render it with ↦ (named), ↦, ↦, or CSS \21A6. Related: U+2192 (→, simple right arrow), U+21A4 (↤, leftwards arrow from bar / ↤). Do not confuse ↦ with U+27FC (long right arrow from bar / ⟼).

⚡ Quick Reference — Right Arrow From Bar

Unicode U+21A6

Arrows (U+2190–U+21FF)

Hex Code ↦

Hexadecimal reference

HTML Code ↦

Decimal reference

Named Entity ↦

Standard HTML entity (maps-to)

Reference Table
Name           Value
────────────   ──────────
Unicode        U+21A6
Hex code       ↦
HTML code      ↦
Named entity   ↦
CSS code       \21A6
Meaning        Rightwards arrow from bar (maps-to)
Related        U+2192 = right arrow (→)
               U+21A4 = left arrow from bar (↤, ↤)
               U+27FC = long right arrow from bar (⟼, ⟼)
Block          Arrows (U+2190–U+21FF)
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: "\21A6";
  }
 </style>
</head>
<body>
<p>Hex: &#x21A6;</p>
<p>Decimal: &#8614;</p>
<p>Named: &mapsto;</p>
<p id="point">CSS: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+21A6 is widely supported in all modern browsers—it is part of the standard Arrows block:

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

👀 Live Preview

See the Right Arrow From Bar (↦) in common contexts:

Maps-to xf(x)
Function definition f : A ↦ B
Large glyph
Arrow comparison → ↦ ↤
Entity refs &mapsto; &#x21A6; &#8614; \21A6

🧠 How It Works

1

Named HTML Entity

&mapsto; is the named entity for U+21A6 (rightwards arrow from bar). It is the standard maps-to notation in HTML source.

HTML markup
2

Hexadecimal Code

&#x21A6; uses the Unicode hexadecimal value 21A6.

HTML markup
3

Decimal HTML Code

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

HTML markup
4

CSS Entity

\21A6 is used in CSS stylesheets in the content property of pseudo-elements.

CSS stylesheet
=

Same visual result

All four methods produce . Unicode U+21A6 in the Arrows block. Next: Right Arrow From Bar To Black Diamond.

Use Cases

The Right Arrow From Bar (↦) is commonly used in:

🔢 Function mapping

Maps-to notation in mathematics, type theory, and formal specifications.

📝 Math notation

Function definitions, proofs, and mathematical documentation.

🧭 Navigation

Direction from a starting bar in UI elements, breadcrumbs, and diagrams.

🛠 Diagrams

Flowcharts, process flows, and technical diagrams showing mapping or direction.

💻 CS documentation

Algorithm descriptions, API semantics, and programming language notation.

♿ Accessibility

Pair ↦ with plain language (e.g. “maps to”) for screen readers.

💡 Best Practices

Do

  • Prefer &mapsto; in HTML for readable maps-to markup
  • Use ↦ for mathematical function mapping notation
  • Set <meta charset="utf-8">
  • Link to Left Arrow Bar for the paired ↤ symbol
  • Keep one entity style consistent across your project
  • Use CSS \21A6 for decorative arrows in pseudo-elements

Don’t

  • Confuse ↦ (U+21A6) with → (plain right arrow) or ↤ (U+21A4)
  • Use padded Unicode notation like U+021A6—the correct value is U+21A6
  • Use CSS escape \21A6 in HTML text nodes
  • Substitute ASCII -> when proper maps-to notation ↦ is intended
  • Confuse ↦ with long maps-to ⟼ (&xmap;)

Key Takeaways

1

Four ways to render U+21A6 in HTML and CSS

&mapsto; &#x21A6; &#8614;
2

For CSS, use \21A6 in the content property

3

Unicode U+21A6 — RIGHTWARDS ARROW FROM BAR (↦)

4

Distinct from →, ↤, and long maps-to ⟼

❓ Frequently Asked Questions

Use &mapsto; (named), &#x21A6; (hex), &#8614; (decimal), or \21A6 in CSS content. All four render ↦.
U+21A6 (RIGHTWARDS ARROW FROM BAR). Arrows block (U+2190–U+21FF). Hex 21A6, decimal 8614. Commonly read as maps-to in mathematics.
For function mapping and maps-to notation, mathematical documentation, navigation from a starting bar, diagrams, UI design, and technical writing that indicates direction from a vertical bar.
Named and numeric HTML references (&mapsto;, &#8614;, &#x21A6;) go in markup. The CSS escape \21A6 is used in stylesheets, typically on ::before or ::after. Both render ↦.
&mapsto; is the standard named HTML entity for U+21A6. You can also use &#8614; (decimal) or &#x21A6; (hex) and \21A6 in CSS—all equivalent in modern browsers.

Explore More HTML Entities!

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