MathML- Basic math with Operators, Identifiers and Numbers

Written by @m_k_amin 27 May 2013

HTML5 lets you directly write mathematical formulas and equations on the HTML pages. By this feature, the developers are free from putting pictures of the mathematics within the texts, and search engines can review the formula more efficiently. The following code shows how to write basic equations by HTML5 MathML using usual and Greek symbols. Here a combination of Operators, Identifiers and Numbers are used in the following code.

Code Snippet:

                                                
                                                <!-- this script is provided by https://www.html5freecode.com coded by: Kerixa Inc. -->
<!-- This Script is from www.html5freecode.com, Coded by: Kerixa Inc-->

<script type="text/javascript"
          src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<body style="font-size: 18pt;">
	<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'>
		<mn>3</mn>
		<mo>+</mo>
		<mi>x</mi>
		<mo>&minus;</mo>
		<mi>y</mi>
	</math>
	<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'>
		<mi>&pi;</mi>
		<mo>&isin;</mo>
		<mi>&real;</mi>
	</math>
</body>

<div style="text-align: center"><br><font face="Tahoma"><a target="_blank" href="http://www.html5freecode.com"><span style="font-size: 8pt; text-decoration: none">HTML5 Free Code</span></a></font></div><a target='_blank' href='https://www.html5freecode.com' style='font-size: 8pt; text-decoration: none'>Html5 Free Codes</a>                                                
                                            

Example:


About @m_k_amin

This user is pending a biography.

M

Comments


Here you can leave us commments. Let us know what you think about this code tutorial!

0 / 300

TRENDING POST
1
2
3
4
5
VISITORS
Online Users: 12
Recent Members: Afzal, FOTPU
advertisement 2