MathML Operators
- MathML <mo> element is used to specify an operator on a web page.
- It can specify any type of operator. For Example : =, +, ? and even parentheses and commas.
Operators
- Let's take an expression to deploy an operator.
- 3 x - 2y
Sample Code
Note : Traditional typography differentiates hyphens from minus signs, which are longer.
Operator Entities
- Operator entities are used to represent special symbols like minus signs, less than, greater than etc.
- The operator entities are generally used as the content of an element:
Index | Symbol | Entity | Hex | Description |
---|---|---|---|---|
1 | ? | − | − | Subtraction |
2 | * | × | × | Multiplication |
3 | / | ÷ | ÷ | Division |
4 | ≠ | ≠ | ≠ | Not equal |
5 | ≈ | ≈ | ≈ | Approximately equal |
6 | < | < | < | Less than |
7 | ≤ | ≤ | ≤ | Less than or equal |
8 | > | > | > | Greater than |
9 | ≥ | ≥ | ≥ | Greater than or equal |
10 | ± | ± | ± | Plus or minus |
Example:
- See this equation: 5 x - 4 y ? 0
Equivalent Code
Supporting Browsers
Element | |||||
---|---|---|---|---|---|
<mo> | No | No | Yes | No | Only Basic Support |