HTML Entity for Lowercase G (g)

What You'll Learn
How to display the lowercase letter g in HTML using entity methods. The letter g is the seventh letter of the Latin alphabet (U+0067) and is part of the Basic Latin block. It appears in every Western-language text, from body copy to form labels and code examples. 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 &g; for this letter.
⚡ Quick Reference — Lowercase G Entity
U+0067Basic Latin (ASCII)
gHexadecimal reference
gDecimal reference
gType directly (no named entity)
Name Value
──────────── ──────────
Unicode U+0067
Hex code g
HTML code g
Named entity (none — use g directly)
CSS code \67
Meaning Latin small letter g
Related U+0047 = G (uppercase)
Block Basic Latin (U+0000–U+007F)Complete HTML Example
A simple example showing the lowercase letter g using hexadecimal code, decimal HTML code, the character directly, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\67";
}
</style>
</head>
<body>
<p>Symbol (hex): g</p>
<p>Symbol (decimal): g</p>
<p>Symbol (direct): g</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>🌐 Browser Support
The lowercase letter g (U+0067) is universally supported in all browsers and platforms as part of Basic Latin:
👀 Live Preview
See the lowercase letter g in common text contexts:
🧠 How It Works
Hexadecimal Code
g uses the Unicode hexadecimal value 67 to display the letter. The x prefix indicates hexadecimal format.
Decimal HTML Code
g uses the decimal Unicode value 103 to display the same character. This is the ASCII/Unicode decimal for g.
Direct Character
Type g directly in HTML. There is no named entity like &g;; the character itself is the standard approach in body text.
CSS Entity
\67 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: g. Unicode U+0067 sits in Basic Latin. The uppercase form is U+0047 (G). Do not confuse plain g with ğ (g with breve). In normal text, typing g is preferred.
Use Cases
The lowercase letter g (or its entity forms) is commonly used in:
Standard character in paragraphs, articles, and any Latin-script text. Usually typed directly.
Display labels, placeholders, or values that include the letter g (e.g., “gender”, “group”, “general”).
Using \67 in the CSS content property to insert g via ::before or ::after.
Code examples, variable names, function names, and technical documentation that use the character g.
When building HTML in code, using g or g ensures correct output regardless of encoding context.
Reference or demonstrate the lowercase g in font samples, type specimens, and design systems.
Ensure consistent representation of the letter g across different encodings and platforms.
💡 Best Practices
Do
- Type
gdirectly in body content; use entities only when necessary - Serve pages as UTF-8 so Basic Latin characters render without entities
- Use numeric references (
gorg) when escaping is required - Use
\67in CSScontentwhen generating the letter via pseudo-elements - Remember lowercase g is U+0067 and uppercase G is U+0047 when case matters
Don’t
- Overuse numeric entities for
gin normal readable text - Expect a named HTML entity like
&g;—none exists for this letter - Confuse plain
g(U+0067) with ğ (g with breve, U+011F, Turkish soft g) - Put CSS escape
\67in HTML text nodes - Mix entity styles randomly in one file without reason
Key Takeaways
Type g directly, or use hex/decimal references
g gFor CSS stylesheets, use the escape in the content property
\67Unicode U+0067 — LATIN SMALL LETTER G
Seventh letter of the Latin alphabet (Basic Latin block)
Previous: Lowercase F Reverse (ɟ) Next: Lowercase G Acute
❓ Frequently Asked Questions
g directly, or use g (hex), g (decimal), or \67 in CSS content. For most content, typing g is standard; use numeric or CSS entities when escaping or generating via CSS.U+0067 (LATIN SMALL LETTER G). Basic Latin block. Hex 67, decimal 103. It is the seventh letter of the Latin alphabet and a standard character in virtually all Western scripts.::before/::after content, or ensuring encoding in legacy systems. For normal body text, typing g is preferred.U+0067 (Basic Latin). The character ğ (Latin small letter g with breve) is U+011F and is used in Turkish for the soft g sound. Use g or g for the standard letter, and ğ when you need the Turkish character.&g; for the letter g. Use the character g directly, or numeric references g (decimal) or g (hex). Named entities are mainly for characters with special meaning (e.g. <, &).Explore More HTML Entities!
Discover 1500+ HTML character references — letters, symbols, and more.
8 people found this page helpful
