HTML Entity for Lowercase G (g)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+0067

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

Unicode U+0067

Basic Latin (ASCII)

Hex Code g

Hexadecimal reference

HTML Code g

Decimal reference

Direct Character g

Type directly (no named entity)

Reference Table
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)
1

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:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\67";
  }
 </style>
</head>
<body>
<p>Symbol (hex): &#x67;</p>
<p>Symbol (decimal): &#103;</p>
<p>Symbol (direct): g</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The lowercase letter g (U+0067) is universally supported in all browsers and platforms as part of Basic Latin:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the lowercase letter g in common text contexts:

Large glyphg
Body textThe letter g appears in words like good, great, and game.
LabelGender, group, general
Alphabete f g h i j
Not the same asğ (g with breve, U+011F, Turkish soft g)
Numeric refs&#x67; &#103; \67

🧠 How It Works

1

Hexadecimal Code

&#x67; uses the Unicode hexadecimal value 67 to display the letter. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#103; uses the decimal Unicode value 103 to display the same character. This is the ASCII/Unicode decimal for g.

HTML markup
3

Direct Character

Type g directly in HTML. There is no named entity like &g;; the character itself is the standard approach in body text.

HTML markup
4

CSS Entity

\67 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

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:

📝 Body text

Standard character in paragraphs, articles, and any Latin-script text. Usually typed directly.

📄 Forms & labels

Display labels, placeholders, or values that include the letter g (e.g., “gender”, “group”, “general”).

🎨 CSS generated content

Using \67 in the CSS content property to insert g via ::before or ::after.

💻 Programming & docs

Code examples, variable names, function names, and technical documentation that use the character g.

⚙ Programmatic HTML

When building HTML in code, using &#103; or &#x67; ensures correct output regardless of encoding context.

🔤 Typography & fonts

Reference or demonstrate the lowercase g in font samples, type specimens, and design systems.

🌐 Internationalization

Ensure consistent representation of the letter g across different encodings and platforms.

💡 Best Practices

Do

  • Type g directly in body content; use entities only when necessary
  • Serve pages as UTF-8 so Basic Latin characters render without entities
  • Use numeric references (&#x67; or &#103;) when escaping is required
  • Use \67 in CSS content when 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 g in 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 \67 in HTML text nodes
  • Mix entity styles randomly in one file without reason

Key Takeaways

1

Type g directly, or use hex/decimal references

&#x67; &#103;
2

For CSS stylesheets, use the escape in the content property

\67
3

Unicode U+0067 — LATIN SMALL LETTER G

4

Seventh letter of the Latin alphabet (Basic Latin block)

❓ Frequently Asked Questions

Type g directly, or use &#x67; (hex), &#103; (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.
Use numeric or CSS entities when generating HTML programmatically, escaping in attributes, using CSS ::before/::after content, or ensuring encoding in legacy systems. For normal body text, typing g is preferred.
The plain letter g is 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 &#103; for the standard letter, and ğ when you need the Turkish character.
No. HTML does not define a named entity like &g; for the letter g. Use the character g directly, or numeric references &#103; (decimal) or &#x67; (hex). Named entities are mainly for characters with special meaning (e.g. &lt;, &amp;).

Explore More HTML Entities!

Discover 1500+ HTML character references — letters, symbols, and more.

All HTML Entities →

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