HTML Entity for Uppercase M (M)

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

What Is Uppercase M?

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

Remember
Character     M
Unicode       U+004D
Hex entity    M
Decimal       M
CSS escape    \4D
Named entity  (none)
Not the same  ℳ · Μ

Prefer typing M in normal page text. Use M / M for CSS content, generated markup, or when encoding must be explicit.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct characterMHTML text (preferred)
Hex entityMHTML markup
Decimal entityMHTML markup
CSS escape\4DStylesheet content
Named entity—Not defined in HTML5
Lowercase pairm (U+006D)Small letter m

When to Use Which

SituationUse
Normal paragraphs, headings, labelsType M
Need an entity in HTML sourceM or M
Script capital M (ℳ)ℳ / ℳ
Lowercase mm / m
Generated text via ::before / ::aftercontent: "\4D"

Live Preview

Uppercase M rendered next to related letters.

Example Letter M is the 13th letter.
Large glyph M
Compared M   m   ℳ   Μ
With entities Hex: M | Decimal: M

Complete HTML Example

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

Hex + Decimal + Typed + CSS

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

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Uppercase M in HTML</title>
  <style>
    #point::after {
      content: "\4D";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x4D;</p>
  <p>Using HTML Code: &#77;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: M</p>
  <p>Example: Letter M is the 13th letter.</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex / decimal: U+004D → &#x4D; or &#77;. The browser turns either into M.

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

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

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

Pitfalls & Tips

Common mistakes when working with Uppercase M.

Type it

Prefer the typed character

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

Named?

No named entity for plain M

HTML5 does not define &M;. Use &#x4D; / &#77;, or type M.

ℳ

Not script capital M

&Mscr; (U+2133) is a Letterlike script form used in math notation — a different character from Latin M.

Μ

Not Greek Mu

&Mu; (U+039C) can look similar in some fonts but is a different script and code point.

CSS vs HTML

Do not mix escapes

\4D belongs in CSS strings. &#x4D; / &#77; belong in HTML.

Case

Case is significant

M (U+004D) and m (U+006D) are different characters. Use the case your content requires.

Browser Support

Uppercase M (U+004D) and its entity forms (&#x4D;, &#77;, CSS \\4D) are supported in all mainstream browsers — it is core Basic Latin (ASCII).

✓ Universal support

Uppercase M (M)

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+004D / entities Full support

Bottom line: Prefer typing M in HTML text. Use &#x4D; / &#77; when you need an entity, and \\4D only inside CSS content.

Key Takeaways

  • Unicode: this letter is U+004D (decimal 77) — glyph M.
  • HTML: type M, or use &#x4D; / &#77; — no named entity.
  • CSS: use \4D inside content for generated text.
  • Watch out: plain M ≠ &Mscr; ≠ Greek &Mu;.

One line: U+004D → type M / &#x4D; / &#77; / CSS \4D.

Frequently Asked Questions

Type M directly, or use &#x4D; (hex), &#77; (decimal), or the CSS escape \4D in content. There is no named HTML entity for U+004D.
U+004D (LATIN CAPITAL LETTER M). Hex 4D, decimal 77. It belongs to Basic Latin (ASCII).
No. Plain ASCII letters do not have named HTML entities. Use numeric references like &#77; or &#x4D; when you need an entity form.
Prefer typing M in normal page text. Use entities for CSS content, generated markup, or when encoding must be explicit.
HTML entities (&#77; or &#x4D;) go in markup. The CSS escape \4D goes in stylesheet strings (usually content on ::before/::after).
No. M is Latin capital M (U+004D). ℳ is script capital M (&Mscr;, U+2133). Μ is Greek capital Mu (&Mu;, U+039C).

Did you know?

Uppercase M (M) is Unicode U+004D (decimal 77) — LATIN CAPITAL LETTER M in Basic Latin (ASCII). HTML5 has no named entity for it — type M directly, or use &#x4D; / &#77; when you need an entity form. Do not confuse it with script capital M (&Mscr;, ℳ) or Greek Mu (&Mu;, Μ).

Next: Script Capital M

Learn the HTML entity for script capital M (U+2133).

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