HTML Entity for Uppercase Q (Q)

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

What Is Uppercase Q?

Uppercase Q (Q) is the Basic Latin character at Unicode U+0051 (LATIN CAPITAL LETTER Q). It is the seventeenth letter of the Latin alphabet and a core ASCII character. You can type Q directly in HTML, or write a numeric character reference when you need an explicit entity form.

Remember
Character     Q
Unicode       U+0051
Hex entity    Q
Decimal       Q
CSS escape    \0051
Named entity  (none)
Not the same  q · ℚ · Ɋ

Prefer typing Q in normal page text. Use Q / Q for CSS content, generated markup, or when encoding must be explicit. For the lowercase pair see lowercase q; for the double-struck form see uppercase Q double struck.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct characterQHTML text (preferred)
Hex entityQHTML markup
Decimal entityQHTML markup
CSS escape\0051Stylesheet content
Named entity—Not defined in HTML5
Lowercase pairq (U+0071)Small letter q

When to Use Which

SituationUse
Normal paragraphs, headings, labelsType Q
Need an entity in HTML sourceQ or Q
Lowercase qUse q / q
Double-struck capital QUse ℚ (U+211A)
Generated text via ::before / ::aftercontent: "\0051"

Live Preview

Uppercase Q rendered next to related letters.

Example The letter Q follows P in the alphabet.
Large glyph Q
Compared Q   q   ℚ   Ɋ
With entities Hex: Q | Decimal: Q

Complete HTML Example

One page that shows Uppercase Q with hex, decimal, typed character, and CSS escape. Use View Output or open the live editor.

Hex + Decimal + Typed + CSS

Four ways to produce Q, plus a short alphabet sentence.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Uppercase Q in HTML</title>
  <style>
    #point::after {
      content: "\0051";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x51;</p>
  <p>Using HTML Code: &#81;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: Q</p>
  <p>Example: The letter Q follows P in the alphabet.</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex / decimal: U+0051 → &#x51; or &#81;. The browser turns either into Q.

2. Typed: most keyboards can type Q directly in UTF-8 HTML — usually the simplest option.

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

4. Example: write normal text with a typed Q for everyday content.

Pitfalls & Tips

Common mistakes when working with Uppercase Q.

Type it

Prefer the typed character

For body text, type Q. Entities are useful for CSS escapes and generated content, not everyday paragraphs.

Named?

No named entity for plain Q

HTML5 does not define &Q;. Use &#x51; / &#81;, or type Q.

ℚ

Not double-struck Q

U+211A (ℚ) is a different character. See uppercase Q double struck.

Ɋ

Not Q with hook tail

U+024A (Ɋ) is a Latin Extended-B letter. See uppercase Q hook tail.

CSS vs HTML

Do not mix escapes

\0051 belongs in CSS strings. &#x51; / &#81; belong in HTML.

Case

Case is significant

Q (U+0051) and q (U+0071) are different characters. Use the case your content requires.

Browser Support

Uppercase Q (U+0051) and its entity forms (&#x51;, &#81;, CSS \\0051) are supported in all mainstream browsers — it is core Basic Latin (ASCII).

✓ Universal support

Uppercase Q (Q)

Encode with hex, decimal, CSS escape, or type the character — same ASCII code point 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+0051 / entities Full support

Bottom line: Prefer typing Q in HTML text. Use &#x51; / &#81; when you need an entity, and \\0051 only inside CSS content.

Key Takeaways

  • Unicode: this letter is U+0051 (decimal 81) — glyph Q.
  • HTML: type Q, or use &#x51; / &#81; — no named entity.
  • CSS: use \0051 inside content for generated text.
  • Watch out: plain Q ≠ ℚ ≠ Ɋ.

One line: U+0051 → type Q / &#x51; / &#81; / CSS \0051.

Frequently Asked Questions

Type Q directly, or use &#x51; (hex), &#81; (decimal), or the CSS escape \0051 in content. There is no named HTML entity for U+0051.
U+0051 (LATIN CAPITAL LETTER Q). Hex 51, decimal 81. It belongs to Basic Latin (ASCII).
No. Plain ASCII letters do not have named HTML entities. Use numeric references like &#81; or &#x51; when you need an entity form.
Prefer typing Q in normal page text. Use entities for CSS content, generated markup, or when encoding must be explicit.
HTML entities (&#81; or &#x51;) go in markup. The CSS escape \0051 goes in stylesheet strings (usually content on ::before/::after).
No. Q is Latin capital Q (U+0051). ℚ is double-struck capital Q (&Qopf;, U+211A). Ɋ is Latin capital Q with hook tail (U+024A).

Did you know?

Uppercase Q (Q) is Unicode U+0051 (decimal 81) — LATIN CAPITAL LETTER Q in Basic Latin (ASCII). HTML5 has no named entity for it — type Q directly, or use &#x51; / &#81; when you need an entity form. Do not confuse it with double-struck Q (ℚ) or Q with hook tail (Ɋ).

Next: Uppercase Q Double Struck Capital

Learn the HTML entity for double-struck capital Q — next in this sequence.

Continue 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