Tutorialspoint.dev

HTML5 | Mathematical operators

Mathematical Operators are used for representation of mathematical and technical operators. In HTML5 some special codes are used. For the representation of these operators we can use the name or hexadecimal(Hex) reference.

Examples:

Input : &minus or &#8722 
Output : -
Input : &times or &#215
Output : x
Input : &frac34 or &#190
Output : 3/4
<!DOCTYPE html>
<html>
<body>
   
  <p>∑</p>
  <p>&#8721</p>
  <p>°</p>
  <p>&#176</p>
  <p>≈</p> 
  <p>&#8776</p>
</body>
</html>

Output:


In writing the hex reference in html code, a semicolon is required at the end.
Some Common mathematical Characters are-

Some Complex mathematical symbols are-



This article is attributed to GeeksforGeeks.org

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter