>
Punctuation

Greater-Than Sign >

The greater-than sign closes HTML tags and is a reserved character in markup contexts. While browsers are often forgiving with unescaped greater-than signs in text content, escaping them is required for valid HTML and prevents edge-case parsing issues. It is one of the five predefined XML character entities.

All Representations

Named Entity
>
Decimal Code
>
Hex Code
>
Unicode
U+003E

Rendered Output

>

> renders as the character shown above

When to Use Greater-Than Sign

Use the greater-than entity when displaying code examples that include closing tags, writing about command-line redirection operators, or showing mathematical comparisons. Escaping > is mandatory inside attributes and recommended in all text content for consistent, standards-compliant HTML.

Try It — HTML Examples

Named entity in text
<p>Symbol: &gt;</p>
Decimal reference
<p>Symbol: &#62;</p>
Hex reference
<p>Symbol: &#x3E;</p>
Inside an HTML attribute
<div title="The Greater-Than Sign: &gt;">Hover to see</div>

About the Greater-Than Sign Entity

The Greater-Than Sign character (>) is a standard HTML entity defined in the HTML specification. In HTML source code, it can be written using the named entity reference &gt;, the decimal numeric character reference &#62;, or the hexadecimal numeric reference &#x3E;. The character is assigned Unicode code point U+003E in the Universal Character Set.

The greater-than sign closes HTML tags and is a reserved character in markup contexts. While browsers are often forgiving with unescaped greater-than signs in text content, escaping them is required for valid HTML and prevents edge-case parsing issues. It is one of the five predefined XML character entities.

Punctuation and whitespace entities are among the most frequently used HTML entities in web development. They handle characters that either have special meaning in HTML syntax — such as angle brackets and ampersands — or represent typographic characters that improve the visual quality of text, like em dashes and curly quotes. Proper use of punctuation entities is essential for producing valid, well-formed HTML documents and achieving professional-looking typography on the web.

When deciding how to encode the Greater-Than Sign character in your HTML documents, the named entity &gt; is generally the most readable choice for developers reviewing or maintaining source code. The decimal form &#62; and hexadecimal form &#x3E; are equally valid alternatives that work in contexts where named entities may not be supported, or when generating HTML output programmatically from server-side code. All three representations produce identical visual output in every modern web browser.

Use the greater-than entity when displaying code examples that include closing tags, writing about command-line redirection operators, or showing mathematical comparisons. Escaping > is mandatory inside attributes and recommended in all text content for consistent, standards-compliant HTML.

Related Entities

Explore More HTML Entities

Browse our complete reference of 262 HTML entities with codes, examples, and usage tips.