HTML Entity for Uppercase Q (Q)

What You'll Learn
How to display the uppercase letter Q in HTML using entity methods and direct character input. The letter Q is the seventeenth letter of the Latin alphabet (U+0051) and is part of the Basic Latin block. It appears in proper nouns, acronyms (Q&A, QR), headings, and any text that requires capitalization. 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 &Q; for this letter.
⚡ Quick Reference — Uppercase Q Entity
U+0051Basic Latin (ASCII)
QHexadecimal reference
QDecimal reference
QType directly (no named entity)
Name Value
──────────── ──────────
Unicode U+0051
Hex code Q
HTML code Q
Named entity (none — use Q directly)
CSS code \0051
Meaning Latin capital letter Q
Related U+0071 = q (lowercase)
Block Basic Latin (U+0000–U+007F)Complete HTML Example
A simple example showing the uppercase letter Q using hexadecimal code, decimal HTML code, the character directly, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#query:after{
content: "\0051";
}
</style>
</head>
<body>
<p>Symbol (hex): Q</p>
<p>Symbol (decimal): Q</p>
<p>Symbol (direct): Q</p>
<p id="query">Symbol (CSS): </p>
</body>
</html>🌐 Browser Support
The uppercase letter Q (U+0051) is universally supported in all browsers and platforms as part of Basic Latin:
👀 Live Preview
See the uppercase letter Q in common text contexts:
🧠 How It Works
Hexadecimal Code
Q uses the Unicode hexadecimal value 51 to display the letter. The x prefix indicates hexadecimal format.
Decimal HTML Code
Q uses the decimal Unicode value 81 to display the same character. This is the ASCII/Unicode decimal for Q.
Direct Character
Type Q directly in HTML. There is no named entity like &Q;; the character itself is the standard approach in body text.
CSS Entity
\0051 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: Q. Unicode U+0051 sits in Basic Latin. The lowercase form is U+0071 (q). In normal text, typing Q is preferred over numeric entities.
Use Cases
The uppercase letter Q (or its entity forms) is commonly used in:
Sentence starts, proper nouns, and titles where the letter Q begins a word.
Tutorials, API docs, and code samples that show the character Q as an entity or escape.
Abbreviations such as Q&A, QR codes, and SQL where Q appears in the name.
Proper nouns and place names in English, Spanish, French, Portuguese, and other Latin-script languages.
Page titles, section headings, and navigation labels that start with Q.
When building HTML in code, using Q or Q ensures correct output regardless of encoding context.
Using \0051 in the CSS content property to insert Q via pseudo-elements.
💡 Best Practices
Do
- Type
Qdirectly in body content; use entities only when necessary - Serve pages as UTF-8 so Basic Latin characters render without entities
- Use numeric references (
QorQ) when escaping is required - Use
\0051in CSScontentwhen generating the letter via pseudo-elements - Remember uppercase Q is U+0051 and lowercase q is U+0071 when case matters
Don’t
- Overuse numeric entities for
Qin normal readable text - Expect a named HTML entity like
&Q;—none exists for this letter - Confuse plain
Qwith ℚ (double-struck capital Q for rationals) - Double-encode numeric references in dynamically generated HTML
- Put CSS escape
\0051in HTML text nodes
Key Takeaways
Type Q directly, or use hex/decimal references
Q QFor CSS stylesheets, use the escape in the content property
\0051Unicode U+0051 — LATIN CAPITAL LETTER Q
Seventeenth letter of the Latin alphabet (Basic Latin block)
Previous: Uppercase P Script Capital (℘) Next: Uppercase Q Double Struck Capital
❓ Frequently Asked Questions
Q directly, or use Q (hex), Q (decimal), or \0051 in CSS content. There is no named HTML entity for Q. For most content, typing Q is standard; use numeric or CSS entities when escaping or generating via CSS.U+0051 (LATIN CAPITAL LETTER Q). Basic Latin block. Hex 51, decimal 81. It is the seventeenth letter of the Latin alphabet and a standard character in virtually all Western scripts.Q or Q, or the CSS entity \0051. In UTF-8 pages you can type Q directly.Q or Q) is used in HTML content; CSS entity \0051 is used in stylesheets in the content property of pseudo-elements. Both produce the character Q.Explore More HTML Entities!
Discover 1500+ HTML character references — letters, symbols, and more.
8 people found this page helpful
