HTML Entity for Greater Than (>)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+003E

What Is Greater Than?

Greater than (>) is the Unicode character at U+003E in Basic Latin. Official name: GREATER-THAN SIGN. It is a reserved markup character — use an entity when you want the symbol as text, not as tag syntax.

Remember
Character     >
Unicode       U+003E
Named entity  >
Hex entity    >
Decimal       >
CSS escape    \003E
Meaning       greater-than / comparison
Not the same  &lt; (<) · &ge; (≥) · &gt;&gt; (≫ needs its own char)

Prefer &gt; in HTML. Alternatives: &#x3E;, &#62;, or a raw > in UTF-8 text when escaping is not required.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity&gt;HTML markup (preferred)
Hex entity&#x3E;HTML markup
Decimal entity&#62;HTML markup
Direct character>HTML text (UTF-8; ok in many cases)
CSS escape\003EStylesheet content

When to Use Which

SituationUse
Show > as visible text / comparison&gt;
Less-than comparison pair&lt; with &gt;
Greater than or equal (≥)Greater than or equal to
Generated text via ::before / ::aftercontent: "\003E"
Unescaped tag closer in markupNever — that ends an HTML tag

Live Preview

Symbol alone, in a sample, and next to related forms.

Glyph >
Large glyph >
Sample Score: 90 > 75   Range: a > b
Compared <   >   ≤   ≥
With entities Named: > | Hex: > | Decimal: >

Complete HTML Example

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

Named + Hex + Decimal + CSS + Typed

Five ways to display > in HTML and CSS.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Greater Than (U+003E) in HTML</title>
  <style>
    #point::after {
      content: "\003E";
    }
  </style>
</head>
<body>
  <p>Built with Named: &gt;</p>
  <p>Built with Hex: &#x3E;</p>
  <p>Built with Decimal: &#62;</p>
  <p id="point">Built with CSS: </p>
  <p>Typed: ></p>
  <p>Sample: score 90 &gt; 75</p>
  <p>Pair: &lt; and &gt;</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &gt; is the HTML5 name for U+003E → >. Prefer this when escaping.

2. Hex: &#x3E; inserts the same code point. Same visual as named.

3. Decimal: same code point as 62 → &#62;.

4. CSS: use \003E in content (not an HTML entity). Prefer four hex digits so the escape does not swallow the next character.

5. Typed: a raw > often works in HTML text, but &gt; stays clear next to tags. Pair with &lt; for less-than.

Pitfalls & Tips

Common mistakes when working with greater than.

Escape

Prefer &gt; for text

Browsers are often forgiving of raw > in text, but &gt; is safer in examples, XML, and generated HTML.

Tags

Do not break tags

A bare > closes an open tag. Inside attribute values or odd markup, always prefer the entity.

Pair

Escape < too

< must be written as &lt; in text — it starts tags. Learn &lt; and &gt; together.

Math

Not the same as ≥

Greater-than-or-equal is a different character. Use the correct entity when you need ≤ or ≥.

CSS

Pad the CSS escape

Prefer \003E. A short \3E can swallow the next hex digit if one follows immediately.

CSS vs HTML

Do not mix escapes

\003E belongs in CSS strings. &gt; / &#x3E; / &#62; belong in HTML.

Semicolon

End references

Always finish entities with ; — write &gt;, not &gt.

Browser Support

Greater than (U+003E) and its entity forms (&gt;, &#x3E;, &#62;, CSS \\003E) are supported in all mainstream browsers as a Basic Latin character.

✓ Universal support

Greater Than (>)

Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

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+003E Full support

Bottom line: Prefer &gt; in HTML. Use &#x3E; / &#62; when numeric form is required, and \\003E only inside CSS content.

Key Takeaways

  • Unicode: greater than is U+003E (decimal 62) — glyph >.
  • HTML: prefer &gt; — also &#x3E; / &#62;.
  • CSS: use \003E inside content for generated text.
  • Safety: escape with &gt; (and &lt;) so comparisons never look like tags.

One line: U+003E → &gt; / &#x3E; / &#62; / CSS \003E.

Frequently Asked Questions

Prefer &gt; (named). You can also use &#x3E; (hex), &#62; (decimal), or the CSS escape \003E in content. In plain text content browsers often accept a raw >, but &gt; is the safe, readable choice.
U+003E (GREATER-THAN SIGN). Hex 3E, decimal 62. It belongs to Basic Latin (ASCII).
Yes. HTML5 defines &gt; (and &GT;) for U+003E. Prefer &gt; in tutorials and whenever you escape reserved markup characters.
Use &gt; whenever you want explicit escaping (examples, generated HTML, XML/XHTML, or mixed markup). For normal comparisons in body text, &gt; is still the clearest habit alongside &lt;.
HTML entities (&gt;, &#62;, or &#x3E;) go in markup. The CSS escape \003E goes in stylesheet strings (usually content on ::before/::after).
No. > is U+003E. Greater-than or equal (≥) and other math relations are different Unicode characters with their own entities.

Did you know?

Greater than is Unicode U+003E (decimal 62) — glyph > (GREATER-THAN SIGN) in Basic Latin. HTML5 named entity: &gt; (also &GT;). Prefer &gt; when escaping markup so > is never mistaken for the end of a tag. Pair with &lt; for comparisons.

Next: Greater Than Above Right Arrow

Learn the HTML entity for greater-than above rightwards arrow (U+2978).

Greater than above right arrow tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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