Anonymous
Anonymous

Reputation: 754

HTML escape chars

How do I use > and < in HTML?

Here is an example:

<h2>To put big text in HTML, use <h1>Your text</h1></h2>

Upvotes: 1

Views: 97

Answers (1)

Dekel
Dekel

Reputation: 62536

You can use html entities:

&lt;
&gt;

<h1>&lt;some text&gt;</h1>

You can find the complete list of html entities here:
https://dev.w3.org/html5/html-author/charref

Upvotes: 1

Related Questions