HTML5 Mathematical operators


The HTML5 mathematical operators are used for mathematical and technical operators’ representation in an HTML document. So, to use such operators to web page, we use HTML entity name. If no entity name exists then you can use entity number which is a decimal or a hexadecimal reference.

Syntax

Following is the syntax −

&operatorName;

Or

&#operatorHexcode;

Or

&#operatorHexadecimalcode;

Let us see an example of HTML5 mathematical operators −

Example

 Live Demo

<!DOCTYPE html>
<html>
<style>
   body {
      color: #000;
      height: 100vh;
      background-color: #8BC6EC;
      background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
      text-align: center;
   }
</style>
<body>
<h1>HTML5 Mathematical Operator Demo</h1>
<p>Some Mathematical Symbols</p>
<p>&minus; -- minus sign</p>
<p>&deg; -- degree sign</p>
<p>&#8721; -- sigma sign</p>
<p>&gt; -- greater than sign</p>
<p>&ge; -- greater than or equal to sign</p>
<p>&lt; -- less than sign</p>
<p>&le; -- less than or equal to sign</p>
<p>&#8747; -- integration sign</p>
</body>
</html>

Output

Updated on: 01-Oct-2019

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements