HTML Entity for Lowercase X (x)

What You'll Learn
How to display the lowercase letter x in HTML using entity methods and direct character input. The letter x is the twenty-fourth letter of the Latin alphabet (U+0078) and is part of the Basic Latin block. It appears in everyday text, algebra and mathematics (e.g. variable x in equations and coordinates), programming documentation, and academic content. In most cases you can type it directly; numeric or CSS entities are useful when escaping, generating content via CSS, or ensuring correct encoding.
This character can be displayed using the character itself, a hexadecimal reference, a decimal reference, or a CSS escape in the content property. There is no named HTML entity like &x; for this letter.
⚡ Quick Reference — Lowercase X Entity
U+0078Basic Latin (ASCII)
xHexadecimal reference
xDecimal reference
xType directly (no named entity)
Name Value
──────────── ──────────
Unicode U+0078
Hex code x
HTML code x
Named entity (none — use x directly)
CSS code \0078
Meaning Latin small letter x
Related U+0058 = X (uppercase)
Block Basic Latin (U+0000–U+007F)Complete HTML Example
A simple example showing the lowercase letter x using hexadecimal code, decimal HTML code, the character directly, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\0078";
}
</style>
</head>
<body>
<p>Symbol (hex): x</p>
<p>Symbol (decimal): x</p>
<p>Symbol (direct): x</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>🌐 Browser Support
The lowercase letter x (U+0078) is universally supported in all browsers and platforms as part of Basic Latin:
👀 Live Preview
See the lowercase letter x in common text contexts:
🧠 How It Works
Hexadecimal Code
x uses the Unicode hexadecimal value 78 to display the letter. The x prefix indicates hexadecimal format.
Decimal HTML Code
x uses the decimal Unicode value 120 to display the same character. This is the ASCII/Unicode decimal for x.
Direct Character
Type x directly in HTML. There is no named entity like &x;; the character itself is the standard approach in body text.
CSS Entity
\0078 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Same visual result
All methods produce the glyph: x. Unicode U+0078 sits in Basic Latin. The uppercase form is U+0058 (X). In normal text, typing x is preferred over numeric entities.
Use Cases
The lowercase letter x (or its entity forms) is commonly used in:
Standard character in paragraphs, articles, and any Latin-script text. Usually typed directly.
Variable x in equations, functions, and coordinate systems (x-axis, (x, y) points).
Tutorials, API docs, and code samples that show the character x as an entity or escape.
Examples involving variables, XML/HTML tag names, and syntax where x appears in sample code.
Headings and page titles where the letter x appears in text content.
When building HTML in code, using x or x ensures correct output regardless of encoding context.
Using \0078 in the CSS content property to insert x via pseudo-elements.
💡 Best Practices
Do
- Type
xdirectly in body content; use entities only when necessary - Serve pages as UTF-8 so Basic Latin characters render without entities
- Use numeric references (
xorx) when escaping is required - Use
\0078in CSScontentwhen generating the letter via pseudo-elements - Remember lowercase x is U+0078 and uppercase X is U+0058 when case matters
Don’t
- Overuse numeric entities for
xin normal readable text - Expect a named HTML entity like
&x;—none exists for this letter - Confuse plain
x(U+0078) with χ (Greek chi) or × (multiplication sign) - Use
U+00078or CSS\00078—the correct code isU+0078and\0078 - Put CSS escape
\0078in HTML text nodes
Key Takeaways
Type x directly, or use hex/decimal references
x xFor CSS stylesheets, use the escape in the content property
\0078Unicode U+0078 — LATIN SMALL LETTER X
Twenty-fourth letter of the Latin alphabet (Basic Latin block)
Previous: Lowercase Wynn (ƿ) Next: Lowercase X Latin (ͯ)
❓ Frequently Asked Questions
x directly, or use x (hex), x (decimal), or \0078 in CSS content. There is no named HTML entity for x. For most content, typing x is standard; use numeric or CSS entities when escaping or generating via CSS.U+0078 (LATIN SMALL LETTER X). Basic Latin block. Hex 78, decimal 120. It is the twenty-fourth letter of the Latin alphabet and a standard character in virtually all Western scripts.x or x, or the CSS entity \0078. In UTF-8 pages you can type x directly.x or x) is used in HTML content; CSS entity \0078 is used in stylesheets in the content property of pseudo-elements. Both produce the character x.Explore More HTML Entities!
Discover 1500+ HTML character references — letters, symbols, and more.
8 people found this page helpful
