HTML Entity for Left Parenthesis (()

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

What You'll Learn

How to display the Left Parenthesis (() in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+0028 (LEFT PARENTHESIS) in the Basic Latin block (U+0000–U+007F)—the opening parenthesis used in equations, code, grouping, and everyday text.

Render it with (, (, or CSS \28, or type ( directly in most HTML. There is no named HTML entity. Related: U+0029 (), right parenthesis), U+005B ([, left bracket / [).

⚡ Quick Reference — Left Parenthesis

Unicode U+0028

Basic Latin

Hex Code (

Hexadecimal reference

HTML Code (

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+0028
Hex code       (
HTML code      (
Named entity   (none)
CSS code       \28
Meaning        Opening parenthesis
Related        U+0029 = right parenthesis ())
               U+005B = left bracket ([)
1

Complete HTML Example

A simple example showing the Left Parenthesis (() using hexadecimal code, decimal HTML code, and a CSS content escape. There is no named HTML entity:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\28";
  }
 </style>
</head>
<body>
<p>Symbol using Hexadecimal: &#x28;</p>
<p>Symbol using HTML Code: &#40;</p>
<p id="point">Symbol using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Left Parenthesis (() is universally supported in all modern browsers as a basic ASCII character:

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

👀 Live Preview

See the Left Parenthesis (() in math and technical contexts:

Function call f(x) = x + 1
Grouping (a + b) × c
Code snippet if (ready) { start(); }
Large glyph (
Bracket comparison ( ) [ {
Numeric refs &#x28; &#40; \28

🧠 How It Works

1

Hexadecimal Code

&#x28; uses the Unicode hexadecimal value 28 for the left parenthesis. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

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

HTML markup
3

CSS Entity

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

CSS stylesheet
=

Same visual result

All three methods produce (. Unicode U+0028 is in Basic Latin. Previous: Left Paired Arrows.

Use Cases

The Left Parenthesis (() is commonly used in:

📐 Mathematics

Group terms in formulas, function arguments, and interval notation.

💻 Code examples

Show function calls, conditions, and expressions in programming tutorials.

📚 Technical docs

Document syntax where parentheses are part of the literal text.

🔒 Escaping

Encode ( in attributes or generated markup when escaping is required.

🗃 Entity reference

Teach numeric entity usage for basic ASCII punctuation.

📝 Everyday text

Clarifications, asides, and parenthetical phrases in prose.

💡 Best Practices

Do

  • Type ( directly in normal HTML body text when escaping is not needed
  • Use &#40; or &#x28; when escaping in attributes or generated content
  • Set <meta charset="utf-8">
  • Keep one numeric style (hex or decimal) per project when using entities
  • Pair with ) (U+0029) for balanced parentheses

Don’t

  • Expect a named HTML entity for U+0028
  • Use CSS \28 inside HTML text nodes
  • Confuse ( (parenthesis) with [ (left bracket) or { (left brace)
  • Over-escape ( in plain body text where a literal character is fine
  • Mix hex and decimal entity styles inconsistently in the same component

Key Takeaways

1

Two HTML numeric references plus CSS for U+0028

&#x28; &#40;
2

For CSS, use \28 in the content property

3

Unicode U+0028 — LEFT PARENTHESIS

4

Basic Latin block (U+0000–U+007F) — no named entity

❓ Frequently Asked Questions

Use &#x28; (hex), &#40; (decimal), or \28 in CSS content. There is no named entity. All three methods render ( correctly.
U+0028 (LEFT PARENTHESIS). Basic Latin block (U+0000–U+007F). Hex 28, decimal 40.
When you need to escape a literal ( in attribute values, generated content, or contexts where the character might be misinterpreted. In normal HTML body text you can usually type ( directly.
HTML references (&#40; or &#x28;) go in markup. The CSS escape \28 is used in stylesheets, typically on ::before or ::after. Both produce (.
No. There is no named HTML entity for U+0028. You can type ( directly in HTML, or use numeric codes: hexadecimal (&#x28;) or decimal (&#40;). In CSS, use \28 in the content property.

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