HTML Entity for Double Vertical Line (‖)

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

What You'll Learn

How to display the Double Vertical Line (‖) in HTML using hexadecimal, decimal, the named entity ‖, and CSS escape methods. This character is U+2016 (DOUBLE VERTICAL LINE) in the General Punctuation block (U+2000–U+206F)—used for vector norms (e.g. ‖x‖), parallel notation, legal citations, and visual separators.

Render it with ‖, ‖, ‖, or CSS escape \2016. Do not confuse with the ASCII pipe | (U+007C) or the parallel-to operator ∥ (∥, U+2225). See also broken vertical bar.

⚡ Quick Reference — Double Vertical Line

Unicode U+2016

General Punctuation block

Hex Code ‖

Hexadecimal reference

HTML Code ‖

Decimal reference

Named Entity ‖

HTML5 named entity for U+2016

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2016
Hex code       ‖
HTML code      ‖
Named entity   ‖
CSS code       \2016
Related        U+007C = Bar (|); U+2225 = Parallel (∥)
1

Complete HTML Example

This example demonstrates the Double Vertical Line (‖) using hexadecimal code, decimal HTML code, the named entity ‖, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2016";
  }
 </style>
</head>
<body>
<p>Double Vertical Line using Hexadecimal: &#x2016;</p>
<p>Double Vertical Line using HTML Code: &#8214;</p>
<p>Double Vertical Line using HTML Entity: &Vert;</p>
<p id="point">Double Vertical Line using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+2016 is widely supported in modern browsers when rendered with a font that includes General Punctuation:

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

👀 Live Preview

See the Double Vertical Line (‖) in common contexts:

Norm ‖x‖ = 5
Separator Chapter 1 ‖ Chapter 2
vs pipe ‖ double   | single
vs parallel ‖ (U+2016)   ∥ (U+2225)
Named entity &Vert; → ‖
CSS escape \2016

🧠 How It Works

1

Hexadecimal Code

&#x2016; uses the Unicode hexadecimal value 2016 to display the Double Vertical Line. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#8214; uses the decimal Unicode value 8214 to display the same character.

HTML markup
3

Named HTML Entity

&Vert; is the HTML5 named entity for U+2016. It is easy to read in source and resolves to the same character (‖).

HTML markup
4

CSS Entity

\2016 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All four methods produce: . Unicode U+2016. Pipe: | (U+007C). Parallel operator: &parallel; (∥, U+2225).

Use Cases

The Double Vertical Line (‖) commonly appears in:

∑ Norms

Vector and matrix norms in linear algebra (e.g. ‖x‖).

∥ Parallel

Parallel lines or relationships in geometry and technical docs.

⚖ Legal citations

Separate volume and page numbers in court and legal references.

➖ UI separators

Dividers and separators in layouts, documents, and design.

🎵 Music

Double bar lines in music notation and score display.

📚 Education

Math, science, and linguistics content with proper punctuation symbols.

💡 Best Practices

Do

  • Use &Vert; for readable markup, or &#x2016; / &#8214;
  • Use fonts with General Punctuation coverage (Cambria Math, STIX, system UI fonts)
  • Add aria-label when the symbol conveys meaning (e.g. “norm”)
  • Distinguish ‖ (U+2016) from | (U+007C, single bar)
  • Distinguish ‖ from ∥ (&parallel;, parallel-to operator)
  • Use \2016 only inside CSS content

Don’t

  • Confuse &Vert; (‖) with the ASCII pipe |
  • Use ∥ when you need the parallel-to operator instead of ‖
  • Put CSS escape \2016 in HTML text nodes
  • Forget UTF-8 (<meta charset="utf-8">)
  • Assume decorative fonts include General Punctuation glyphs

Key Takeaways

1

Named entity available: &Vert;

&#x2016; &#8214;
2

For CSS stylesheets, use the escape in the content property

\2016
3

Unicode U+2016 DOUBLE VERTICAL LINE

4

Pipe: U+007C via | or &#x007C;

5

Four methods, one glyph — widely supported in modern browsers

❓ Frequently Asked Questions

Use &#x2016; (hex), &#8214; (decimal), &Vert; (named entity), or \2016 in CSS content. All produce ‖.
U+2016 (DOUBLE VERTICAL LINE). General Punctuation block (U+2000–U+206F). Hex 2016, decimal 8214. Used for norms, parallel notation, legal citations, and separators.
In mathematical notation (norms, parallel), legal citations, UI separators, music notation (double bar), linguistics, and design dividers.
HTML references (&#8214;, &#x2016;, or &Vert;) go in markup. The CSS escape \2016 is used in stylesheets, typically in the content property of pseudo-elements.
&Vert; is easier to read in source than &#8214; or &#x2016;, but all produce ‖. &Vert; is the standard named entity for U+2016.

Explore More HTML Entities!

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