HTML Entity for Lowercase Q (q)

What You'll Learn
How to display the lowercase letter q in HTML using entity methods and direct character input. The letter q is the seventeenth letter of the Latin alphabet (U+0071) and is part of the Basic Latin block. It appears in everyday text, mathematical notation (e.g. variable q for charge or quaternion components), 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 &q; for this letter.
⚡ Quick Reference — Lowercase Q Entity
U+0071Basic Latin (ASCII)
qHexadecimal reference
qDecimal reference
qType directly (no named entity)
Name Value
──────────── ──────────
Unicode U+0071
Hex code q
HTML code q
Named entity (none — use q directly)
CSS code \0071
Meaning Latin small letter q
Related U+0051 = Q (uppercase)
Block Basic Latin (U+0000–U+007F)Complete HTML Example
A simple example showing the lowercase letter q using hexadecimal code, decimal HTML code, the character directly, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\0071";
}
</style>
</head>
<body>
<p>Symbol (hex): q</p>
<p>Symbol (decimal): q</p>
<p>Symbol (direct): q</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>🌐 Browser Support
The lowercase letter q (U+0071) is universally supported in all browsers and platforms as part of Basic Latin:
👀 Live Preview
See the lowercase letter q in common text contexts:
🧠 How It Works
Hexadecimal Code
q uses the Unicode hexadecimal value 71 to display the letter. The x prefix indicates hexadecimal format.
Decimal HTML Code
q uses the decimal Unicode value 113 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
\0071 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+0071 sits in Basic Latin. The uppercase form is U+0051 (Q). In normal text, typing q is preferred over numeric entities.
Use Cases
The lowercase letter q (or its entity forms) is commonly used in:
Standard character in paragraphs, articles, and any Latin-script text. Usually typed directly.
Tutorials, API docs, and code samples that show the character q as an entity or escape.
Variable names, subscripts, and notation where q represents charge, quaternion components, or queue size.
Words in English, Spanish, French, and many other Latin-script languages.
Headings and page titles where the letter q appears in text content.
When building HTML in code, using q or q ensures correct output regardless of encoding context.
Using \0071 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
\0071in CSScontentwhen generating the letter via pseudo-elements - Remember lowercase q is U+0071 and uppercase Q is U+0051 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
q(U+0071) with ʠ (q with hook, IPA) or ƥ (p with hook) - Double-encode numeric references in dynamically generated HTML
- Put CSS escape
\0071in HTML text nodes
Key Takeaways
Type q directly, or use hex/decimal references
q qFor CSS stylesheets, use the escape in the content property
\0071Unicode U+0071 — LATIN SMALL LETTER Q
Seventeenth letter of the Latin alphabet (Basic Latin block)
Previous: Lowercase P Hook (ƥ) Next: Lowercase Q Hook
❓ Frequently Asked Questions
q directly, or use q (hex), q (decimal), or \0071 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+0071 (LATIN SMALL LETTER Q). Basic Latin block. Hex 71, decimal 113. 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 \0071. In UTF-8 pages you can type q directly.q or q) is used in HTML content; CSS entity \0071 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
