HTML5 Mathematical operators

HTML5 provides a comprehensive set of mathematical operators and symbols that can be displayed in web pages using HTML entities. These entities allow you to represent mathematical notation, Greek letters, and technical symbols that are not available on standard keyboards.

Syntax

Mathematical operators can be inserted using three different formats −

Named Entity:

&entityName;

Decimal Entity:

&#decimalNumber;

Hexadecimal Entity:

&#xhexNumber;

Where entityName is the predefined name, decimalNumber is the decimal Unicode code point, and hexNumber is the hexadecimal Unicode code point.

Common Mathematical Operators

Basic Arithmetic Operators

Following example demonstrates basic arithmetic operators −

<!DOCTYPE html>
<html>
<head>
   <title>Basic Mathematical Operators</title>
</head>
<body style="font-family: Arial, sans-serif; padding: 20px; line-height: 1.6;">
   <h2>Basic Arithmetic Operators</h2>
   <p>&plus; - Plus sign: &plus;</p>
   <p>&minus; - Minus sign: −</p>
   <p>&times; - Multiplication sign: ×</p>
   <p>&divide; - Division sign: ÷</p>
   <p>&plusmn; - Plus-minus sign: ±</p>
</body>
</html>

The output displays the basic arithmetic operators −

Basic Arithmetic Operators
&plus; - Plus sign: +
− - Minus sign: ?
× - Multiplication sign: ×
÷ - Division sign: ÷
± - Plus-minus sign: ±

Comparison Operators

Following example shows comparison and relational operators −

<!DOCTYPE html>
<html>
<head>
   <title>Comparison Operators</title>
</head>
<body style="font-family: Arial, sans-serif; padding: 20px; line-height: 1.6;">
   <h2>Comparison Operators</h2>
   <p>&lt; - Less than: <</p>
   <p>&gt; - Greater than: ></p>
   <p>&le; - Less than or equal: ≤</p>
   <p>&ge; - Greater than or equal: ≥</p>
   <p>&ne; - Not equal: ≠</p>
   <p>&equiv; - Equivalent: ≡</p>
   <p>&asymp; - Approximately equal: ≈</p>
</body>
</html>

The output displays various comparison operators −

Comparison Operators
 - Greater than: >
? - Less than or equal: ?
? - Greater than or equal: ?
? - Not equal: ?
? - Equivalent: ?
? - Approximately equal: ?

Advanced Mathematical Symbols

Calculus and Set Theory

Following example demonstrates advanced mathematical symbols used in calculus and set theory −

<!DOCTYPE html>
<html>
<head>
   <title>Advanced Mathematical Symbols</title>
</head>
<body style="font-family: Arial, sans-serif; padding: 20px; line-height: 1.6;">
   <h2>Calculus and Set Theory Symbols</h2>
   <p>&#8747; - Integral: &#8747;</p>
   <p>&#8721; - Summation (Sigma): &#8721;</p>
   <p>&#8719; - Product (Pi): &#8719;</p>
   <p>&part; - Partial derivative: ∂</p>
   <p>&nabla; - Nabla (Del operator): ∇</p>
   <p>&#8712; - Element of: &#8712;</p>
   <p>&#8713; - Not element of: &#8713;</p>
   <p>&#8746; - Union: &#8746;</p>
   <p>&#8745; - Intersection: &#8745;</p>
</body>
</html>

The output shows advanced mathematical symbols −

Calculus and Set Theory Symbols
? - Integral: ?
? - Summation (Sigma): ?
? - Product (Pi): ?
? - Partial derivative: ?
? - Nabla (Del operator): ?
? - Element of: ?
? - Not element of: ?
? - Union: ?
? - Intersection: ?

Greek Letters in Mathematics

Greek letters are commonly used in mathematical expressions. Following example shows both uppercase and lowercase Greek letters −

<!DOCTYPE html>
<html>
<head>
   <title>Greek Letters</title>
</head>
<body style="font-family: Arial, sans-serif; padding: 20px; line-height: 1.6;">
   <h2>Common Greek Letters in Mathematics</h2>
   <p>&alpha; - Alpha: α</p>
   <p>&beta; - Beta: β</p>
   <p>&gamma; - Gamma: γ</p>
   <p>&Delta; - Delta (uppercase): Δ</p>
   <p>&delta; - Delta (lowercase): δ</p>
   <p>&pi; - Pi: π</p>
   <p>&theta; - Theta: θ</p>
   <p>&lambda; - Lambda: λ</p>
   <p>&mu; - Mu: μ</p>
   <p>&sigma; - Sigma: σ</p>
</body>
</html>

The output displays commonly used Greek letters −

Common Greek Letters in Mathematics
? - Alpha: ?
? - Beta: ?
? - Gamma: ?
? - Delta (uppercase): ?
? - Delta (lowercase): ?
? - Pi: ?
? - Theta: ?
? - Lambda: ?
? - Mu: ?
? - Sigma: ?
Mathematical Operators Categories Basic Operators + (plus) ? (minus) × (times) ÷ (divide) ± (plus-minus) ° (degree) ? (square root) ? (infinity) % (percent) Comparisons > (greater than) ? (less equal) ? (greater equal) ? (not equal) ? (approx equal) ? (equivalent) ? (proportional) Advanced Math ? (integral) ? (summation) ? (product) ? (partial) ? (nabla) ? (element of) ? (union) ? (intersection) ? (subset) Greek Letters ? (alpha) ? (beta) ? (gamma) ? (delta) ? (pi)
Updated on: 2026-03-16T21:38:54+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements