More
More
Greater-Than Sign HTML entity >
> is the HTML entity for Greater-Than Sign > (U+003E). Copy the decimal > and hex > codes plus CSS, JavaScript, Python and URL escapes.
- Entity
>- Also written
>- Legacy form
>(no semicolon)- Code point
- U+003E
- Unicode name
- GREATER-THAN SIGN
- Block
- Basic Latin
- Category
- Math symbol (Sm)
- Since
- Unicode 1.1
- Defined in
- HTML 4.01 and HTML5, and predefined in XML
Codes to copy
| HTML named | >Works in HTML; in XML only & < > " ' are predefined. | |
|---|---|---|
| HTML decimal | >Works in HTML and XML. | |
| HTML hex | >Works in HTML and XML. | |
| CSS | content: "\3E";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u003E"Also valid in JSON. | |
| Python | "\u003e"Python 3 string literal. | |
| Python by name | "\N{GREATER-THAN SIGN}"Readable alternative using the Unicode name. | |
| URL | %3EPercent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | 3E1 byte. | |
| UTF-16 | 003E1 code unit, which is what JavaScript length counts. |
When to use it
A raw > in text does not break HTML, but writing > keeps code samples symmetrical with < and avoids surprises in older tools. In XML it must be escaped where it would complete the sequence ]]>. Predefined in XML as well as HTML.
The name dates from HTML 4, so it works in every browser and in old email clients.
Browsers also accept the legacy form > without a semicolon, for compatibility with old pages; new HTML should always end the reference with a semicolon.
More html syntax and ascii punctuation
@At Sign<Less-Than Sign[Left Square Bracket;Semicolon\Backslash:Colon]Right Square Bracket/Solidus (Slash)
All html syntax and ascii punctuation · Every HTML entity · Encode or decode text
Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).