How do I display ">" on a webpage?

So I found a reason to post the “>” on a webpage, but how do I get it to appear without the browser thinking I’m using it as part of a tag?

&gt

Two minutes. Jeez we’re getting sloppy in the new year.

try “>” (without quotes) for “>”.
… and “<” for “<”

edit: I’m assuming you’re editing directly the code. Otherwise some advanced editors may treat the input as text and display “>” instead.

Awesome, thanks guys! (and two minutes, wow?)

You have to put a semicolon on the end to make it valid: >

For anyone to whom it may not be immediately obvious, “gt” stands for “greater than” and “lt” stands for “less than.”

I know this has been answered already but I found this amusing.

By posting this question you put “>” on a website. You could have viewed source to answer your own question.

This is probably a dumb question, but what if I wanted to display > on a website?

On preview, and looking at the source, it appears I’d have to type >

So, am I correct in assuming the & means “I’m about to give you a special character”, and ; means “All done giving you the special character,”? (And that amp is used instead of & to display an &, and it’s done after the initial &?)

Yeah. These doohickeys are called HTML entities and there’s a whole bunch of them.

Cool. Is there an easy way to use that form when posting on the Dope? For example, I’d use the Greek alphabet a lot more if I just had to type “β”, but that won’t show up as a beta.

vBulletin automatically escapes &'s, meaning your entities like β will get converted to β.

But: there’s an exception for ordinal entities of the form &#NNNN where NNNN is the Unicode codepoint of any character. So you can use &# 914 (without the space) to make Β.

Σ λ ϖ ‰ ϑ ω ψ etc.

ETA: The chart I linked above will show you the ordinal entities if you mouse over any character.