HTML Entity for Lesser Than (<)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+003C

What You'll Learn

How to display the Lesser Than symbol (<) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+003C (LESS-THAN SIGN) in the Basic Latin block—essential for math, programming comparisons, and web content.

Because < is reserved in HTML (it starts a tag), use &#x3C;, &#60;, or &lt; in markup. Pair with &gt; for greater-than comparisons. CSS escape: \3C. Not the same as ≤ (&le;, less-than-or-equal).

⚡ Quick Reference — Lesser Than

Unicode U+003C

Basic Latin (ASCII)

Hex Code &#x3C;

Hexadecimal reference

HTML Code &#60;

Decimal reference

Named Entity &lt;

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+003C
Hex code       &#x3C;
HTML code      &#60;
Named entity   &lt;
CSS code       \3C
Meaning        Less-than sign
Reserved       Yes — escape in HTML content
Pair with      &gt; for greater than (>)
1

Complete HTML Example

A simple example showing the Lesser Than symbol (<) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\3C";
  }
 </style>
</head>
<body>
<p>Lesser Than using Hexadecimal: &#x3C;</p>
<p>Lesser Than using Decimal: &#60;</p>
<p>Lesser Than using Named Entity: &lt;</p>
<p id="point">Lesser Than using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Lesser Than symbol (<) is universally supported in all modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the Lesser Than symbol (<) in comparison contexts:

Large glyph <
Named entity &lt; renders as <
Comparison x < 5 and a < b
Code snippet if (age < 18) { /* minor */ }
Pair < >
Numeric refs &#x3C; &#60; &lt; \3C

🧠 How It Works

1

Hexadecimal Code

&#x3C; uses the Unicode hexadecimal value 3C to display the symbol. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#60; uses the decimal Unicode value 60 to display the same character.

HTML markup
3

Named Entity

&lt; is the standard named entity—prevents < from being parsed as the start of an HTML tag.

HTML markup
4

CSS Entity

\3C is used in CSS stylesheets in the content property of pseudo-elements like ::after.

CSS stylesheet
=

Same visual result

All four methods produce the glyph: <. Unicode U+003C is in Basic Latin. Pair: Greater Than (U+003E / &gt;). Previous: Less Than With Dot.

Use Cases

The Lesser Than symbol (<) is commonly used in:

📐 Comparisons

Strict less-than in math, logic, and numeric comparisons (e.g. x < 10).

💻 Programming

Docs and tutorials for < operators and comparison APIs.

📄 Technical docs

Show literal < in HTML content without breaking markup.

📚 Education

Teach HTML escaping and comparison symbols in courses.

🔢 Markup examples

Display tag syntax or angle brackets in tutorials about HTML/XML.

📚 Cheat sheets

HTML entity references and reserved-character guides.

💡 Best Practices

Do

  • Always use &lt; when showing < in HTML text content
  • Prefer &lt; for readable, maintainable markup
  • Pair with &gt; when documenting comparison operators
  • Use &le; (≤) when you need less-than-or-equal, not plain &lt;
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Type raw < in HTML body text—it starts a tag
  • Put CSS escape \3C in HTML text nodes
  • Confuse &lt; with &le; (≤)
  • Forget to escape < inside attribute values when needed
  • Assume CDATA or script blocks remove the need to understand escaping

Key Takeaways

1

Three HTML references plus CSS all render <

&#x3C; &#60; &lt;
2

For CSS stylesheets, use \3C in the content property

3

Unicode U+003C — LESS-THAN SIGN (reserved in HTML)

4

&lt; is required to display a literal < in HTML content

5

Previous: Less Than With Dot   Next: Lezh

❓ Frequently Asked Questions

Use &#x3C; (hex), &#60; (decimal), &lt; (named), or \3C in CSS content. All produce <. Because < is reserved, always use an entity in HTML text.
U+003C (LESS-THAN SIGN). Basic Latin block. Hex 3C, decimal 60. Named entity: &lt;.
In comparisons and inequalities, mathematical expressions, programming tutorials, technical documentation, markup examples, and any content requiring a literal less-than character displayed on the page.
In HTML, < starts a tag. If you type it directly in content, the browser interprets it as markup. Use &lt;, &#60;, or &#x3C; to render a visible less-than sign.
< (&lt;, U+003C) is strict less-than. ≤ (&le;, U+2264) is less-than-or-equal—a separate mathematical operator. Use &lt; for plain comparisons and &le; for inclusive inequalities.

Explore More HTML Entities!

Discover 1500+ HTML character references — reserved characters, operators, and more.

All HTML Entities →

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