HTML Entity for Lowercase X (x)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+0078

What Is the Lowercase X Entity?

Lowercase x is the Basic Latin character at Unicode U+0078 (LATIN SMALL LETTER X). You can type x directly in HTML, or write it with a numeric character reference when you need an explicit entity form.

Remember
Character     x
Unicode       U+0078
Hex entity    x
Decimal       x
CSS escape    \0078
Named entity  (none)

All of these produce the same glyph: x. Prefer typing x in normal page text; use entities for CSS content, generated markup, or when encoding must be explicit.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct characterxHTML text (default choice)
Hex entityxHTML markup
Decimal entityxHTML markup
CSS escape\0078Stylesheet content
Named entity—Not defined in HTML5

When to Use Which

SituationUse
Normal paragraphs, headings, labelsType x
Need an entity in HTML sourcex or x
Generated text via ::before / ::aftercontent: "\0078"
Looking for &x; or similarDoes not exist — use numeric form
Multiplication sign (×)Different Unicode character — not U+0078

Live Preview

Lowercase x rendered in common UI contexts.

Inline text The letter x appears in words like example and extra.
Large glyph x
Alphabet v w x y z
Monospace const max = Math.max(a, b);
With entities Hex: x | Decimal: x
Not the same X (U+0058) · × (×)

Complete HTML Example

One page that shows lowercase x with the hex entity, decimal entity, CSS escape, and a typed character. Use View Output or open the live editor.

Hex + Decimal + CSS + Typed

All four ways to produce x in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Lowercase X (x) in HTML</title>
  <style>
    #point::after {
      content: "\0078";
    }
  </style>
</head>
<body>
  <p>Lowercase X using Hex Code: &#x78;</p>
  <p>Lowercase X using HTML Code: &#120;</p>
  <p id="point">Lowercase X using CSS Entity: </p>
  <p>Typed directly: x</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+0078 → &#x78; in HTML. The browser turns it into x.

2. Decimal: same code point as 120 → &#120;. Same result as hex.

3. CSS: use \0078 in content (not an HTML entity). #point::after appends that x after the paragraph text.

4. Typed x: best for normal text. All four lines show the same letter.

Pitfalls & Tips

Common mistakes when working with the letter x entity.

Named

No &x;

HTML5 does not define a named entity for plain x. Use &#x78; or &#120;.

Prefer typing

Type x in body text

Entities are optional for ASCII letters. Type x unless you need an explicit escape.

CSS vs HTML

Do not mix escapes

\0078 belongs in CSS. &#x78; / &#120; belong in HTML.

Look-alikes

Not X or ×

Uppercase is U+0058; multiplication sign is U+00D7 (&times;). Plain x is U+0078.

Case

x vs X

Uppercase is U+0058 — a different code point from U+0078.

Semicolon

End references

Always finish with ; — write &#120;, not &#120.

Browser Support

Lowercase x (U+0078) and its entity forms (&#x78;, &#120;, CSS \\0078) are supported in all mainstream browsers.

✓ Universal support

Lowercase X (x)

Type x, or encode with hex, decimal, or CSS escape — same glyph everywhere.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+0078 / entities Full support

Bottom line: Prefer typing x in UTF-8 text. Use &#x78; / &#120; when a numeric form is required, and \\0078 only inside CSS content.

Key Takeaways

  • Unicode: lowercase x is U+0078 (decimal 120), Basic Latin.
  • HTML: no named entity — type x, or use &#x78; / &#120;.
  • CSS: use \0078 inside content for generated text.
  • Use: everyday Latin text — not the same as X or ×.

One line: U+0078 → type x, or &#x78; / &#120; / CSS \0078.

Frequently Asked Questions

Use &#x78; (hex), &#120; (decimal), or the CSS escape \0078 in the content property. All render the letter x. In most cases you can also type x directly.
U+0078 (LATIN SMALL LETTER X). Hex 78, decimal 120. It belongs to the Basic Latin (ASCII) block and is the 24th letter of the Latin alphabet.
No. ASCII letters like x do not have named HTML entities in HTML5, so you should use numeric references like &#120; or &#x78; when you need an entity form.
Use entities when generating content in CSS, when you want explicit encoding, or when outputting into contexts where escaping is required. For normal body text, typing x directly is usually best.
HTML entities (&#120; or &#x78;) go in markup. The CSS escape \0078 is used in stylesheets (usually in the content property of ::before/::after). Both render x.
Plain x is U+0078. Uppercase X is U+0058. The multiplication sign × is U+00D7 (&times;) — a math symbol, not the letter x. Do not substitute one for another.

Did you know?

Lowercase x is Unicode U+0078 (decimal 120). HTML5 has no named entity for it — use &#x78; or &#120; when you need an entity form. Do not confuse it with the multiplication sign (×) or combining Latin small letter x.

Next: Lowercase X Latin

Learn the HTML entity for combining Latin small letter x — the next letter in this entity sequence.

Lowercase X Latin tutorial →

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