{"id":24757,"date":"2015-09-24T21:01:20","date_gmt":"2015-09-24T13:01:20","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=24757"},"modified":"2016-01-25T16:58:16","modified_gmt":"2016-01-25T08:58:16","slug":"mathml-markup","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/","title":{"rendered":"Introduction to MathML &#8211; The Markup Language for Math"},"content":{"rendered":"<p><a href=\"https:\/\/www.w3.org\/Math\/\">MathML<\/a> is a <a href=\"https:\/\/www.hongkiat.com\/blog\/tag\/series-html5-css3-tuts\/\/\">markup language<\/a> that can be used to <strong>display mathematical notations<\/strong>. You can use MathML tags directly from HTML5. It is useful for when you wish to show more than simple notations of Math in your web pages, and it\u2019s quite easy to use due to its <strong>simplicity and resemblance to HTML<\/strong>.<\/p>\n<p>MathML has two types of markup; presentation (for layout) and content (for meaning). Since only the presentation markup is <a href=\"https:\/\/caniuse.com\/mathml\">supported<\/a> by browsers, that\u2019s the only markup type that can be used with HTML. You can also use CSS and JavaScript on it just like you would on HTML.<\/p>\n<p>Let\u2019s take a look at MathML.<\/p>\n<h2>Understanding MathML<\/h2>\n<p>There\u2019s a list of present MathML elements in the Mozilla Developer <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/MathML\/Element\">website<\/a>. I\u2019ve also listed the elements used in the examples at the end of this post for quick reference.<\/p>\n<p>The top level element in MathML is the <code>&lt;math&gt;<\/code> element, When you write MathML code in the HTML, remember to put them inside the <code>&lt;math&gt;<\/code> tags.<\/p>\n<p><code>&lt;mi&gt;<\/code>,<code>&lt;mo&gt;<\/code>,<code>&lt;mn&gt;<\/code>,<code>&lt;ms&gt;<\/code> are the basic elements representing an identifier ,operator, number and string respectively. Note that all the MathML elements below start with the letter \u2018m\u2019.<\/p>\n<p>Here are some simple examples.<\/p>\n<h2>How to Display Superscript & Subscript<\/h2>\n<p>The <code>&lt;msup&gt;<\/code> element is for displaying superscript. There\u2019s an <code>&lt;msub&gt;<\/code> for subscripts.<\/p>\n<pre>&lt;math&gt;\r\n    &lt;msup&gt;\r\n        &lt;mi&gt;n&lt;\/mi&gt;\r\n        &lt;mn&gt;7&lt;\/mn&gt;\r\n    &lt;\/msup&gt;\r\n&lt;\/math&gt;\r\n<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex1.jpg\" alt=\"MathML msup element example\" width=\"51\" height=\"54\"><\/figure>\n<h2>How to Display Fractions<\/h2>\n<pre>&lt;math&gt;\r\n    &lt;mfrac&gt;\r\n        &lt;mn&gt;7&lt;\/mn&gt;\r\n        &lt;mn&gt;26&lt;\/mn&gt;\r\n    &lt;\/mfrac&gt;\r\n&lt;\/math&gt;\r\n<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex2.jpg\" alt=\"MathML mfrac element example\" width=\"64\" height=\"87\"><\/figure>\n<h2>How to Display Root Integers<\/h2>\n<p>Here\u2019s one more simple example for displaying root integers.<\/p>\n<pre>&lt;math&gt;\r\n    &lt;mroot&gt;\r\n        &lt;mn&gt;&lt;mo&gt;-&lt;\/mo&gt;678&lt;\/mn&gt;\r\n        &lt;mn&gt;5&lt;\/mn&gt;\r\n    &lt;\/mroot&gt;\r\n&lt;\/math&gt;\r\n<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex3.jpg\" alt=\"MathML mroot element example\" width=\"125\" height=\"57\"><\/figure>\n<p>For only square root, there\u2019s <code>&lt;msqrt&gt;<\/code>.<\/p>\n<p>Now let\u2019s move on to more complex notations, the matrix.<\/p>\n<h2>How to Display a Matrix<\/h2>\n<p>To construct a matrix, we will need to have a table structure for rows and columns. For this, we use <code>&lt;mtable&gt;<\/code>, <code>&lt;mtr&gt;<\/code> and <code>&lt;mtd&gt;<\/code>.<\/p>\n<p>Apart from that, we\u2019ll use the <code>&lt;mo&gt;<\/code> tags to add the operators <code>[<\/code> and <code>]<\/code> around the matrix, and finally put them all inside the <code>&lt;mrow&gt;<\/code> element, an element that groups expressions.<\/p>\n<p>Here\u2019s the end result:<\/p>\n<pre>&lt;math&gt;\r\n &lt;mrow&gt;\r\n  &lt;mo&gt; [ &lt;\/mo&gt;\r\n  &lt;mtable&gt;\r\n    &lt;mtr&gt;\r\n      &lt;mtd&gt; &lt;mn&gt;0&lt;\/mn&gt; &lt;\/mtd&gt;\r\n      &lt;mtd&gt; &lt;mn&gt;4&lt;\/mn&gt; &lt;\/mtd&gt;\r\n      &lt;mtd&gt; &lt;mn&gt;10&lt;\/mn&gt; &lt;\/mtd&gt;\r\n    &lt;\/mtr&gt;\r\n    &lt;mtr&gt;\r\n      &lt;mtd&gt; &lt;mn&gt;5&lt;\/mn&gt; &lt;\/mtd&gt;\r\n      &lt;mtd&gt; &lt;mn&gt;2&lt;\/mn&gt; &lt;\/mtd&gt;\r\n      &lt;mtd&gt; &lt;mi&gt;X&lt;\/mi&gt; &lt;\/mtd&gt;\r\n    &lt;\/mtr&gt;\r\n    &lt;mtr&gt;\r\n      &lt;mtd&gt; &lt;mn&gt;9&lt;\/mn&gt; &lt;\/mtd&gt;\r\n      &lt;mtd&gt; &lt;mn&gt;11&lt;\/mn&gt; &lt;\/mtd&gt;\r\n      &lt;mtd&gt; &lt;mn&gt;1&lt;\/mn&gt; &lt;\/mtd&gt;\r\n    &lt;\/mtr&gt;\r\n  &lt;\/mtable&gt;\r\n  &lt;mo&gt; ] &lt;\/mo&gt;\r\n &lt;\/mrow&gt;\r\n&lt;\/math&gt;\r\n<\/pre>\n<p>Also, let\u2019s throw in a bit of CSS to make that \u2018X\u2019 stand out in the matrix.<\/p>\n<pre>mi {\r\n    color:red;\r\n}\r\n<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex4.jpg\" alt=\"MathML matrix example\" width=\"197\" height=\"182\"><\/figure>\n<h2>How to Display Integral Equations<\/h2>\n<p>Below is an example of a basic type of integral equation. The <code>&lt;mmultiscripts&gt;<\/code> is used to add the limits to the integral.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex5.jpg\" alt=\"MathML integral example\" width=\"315\" height=\"67\"><\/figure>\n<p>Like HTML, MathML also has characters and entities, one of which is used in the example to show the Greek phi symbol. Here\u2019s how to display the integral equation above:<\/p>\n<pre>&lt;math&gt;\r\n    &lt;mrow&gt;\r\n        &lt;mrow&gt;\r\n            &lt;mi&gt;f&lt;\/mi&gt;\r\n            &lt;mo&gt;(&lt;\/mo&gt;\r\n            &lt;mi&gt;x&lt;\/mi&gt;\r\n            &lt;mo&gt;)&lt;\/mo&gt;\r\n        &lt;\/mrow&gt;\r\n        &lt;mo&gt;=&lt;\/mo&gt;\r\n        &lt;mrow&gt;\r\n            &lt;mmultiscripts&gt;\r\n                &lt;mo&gt;&Integral;&lt;\/mo&gt;\r\n                &lt;mi&gt;a&lt;\/mi&gt;\r\n                &lt;mi&gt;b&lt;\/mi&gt;\r\n            &lt;\/mmultiscripts&gt;\r\n            &lt;mrow&gt;\r\n                &lt;mi&gt;K&lt;\/mi&gt;\r\n                &lt;mo&gt;(&lt;\/mo&gt;\r\n                &lt;mi&gt;x&lt;\/mi&gt;\r\n                &lt;mo&gt;,&lt;\/mo&gt;\r\n                &lt;mi&gt;t&lt;\/mi&gt;\r\n                &lt;mo&gt;)&lt;\/mo&gt;\r\n            &lt;\/mrow&gt;\r\n            &lt;mrow&gt;\r\n                &lt;mi&gt;&phi;&lt;\/mi&gt;\r\n                &lt;mo&gt;(&lt;\/mo&gt;\r\n                &lt;mi&gt;t&lt;\/mi&gt;\r\n                &lt;mo&gt;)&lt;\/mo&gt;\r\n            &lt;\/mrow&gt;\r\n            &lt;mi&gt;d&lt;\/mi&gt;\r\n            &lt;mi&gt;t&lt;\/mi&gt;\r\n        &lt;\/mrow&gt;\r\n    &lt;\/mrow&gt;\r\n&lt;\/math&gt;\r\n<\/pre>\n<p>For a list of MathML character entities, click <a href=\"https:\/\/www.w3.org\/2003\/entities\/2007\/htmlmathml-f.ent\">here<\/a> to find them on the W3C website.<\/p>\n<h2>MathML Attributes<\/h2>\n<p>Apart from attributes that are are the same as HTML\u2019s (like <code>id<\/code>), MathML also has a set of their own attributes. The Mozilla Developer site has a <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/MathML\/Attribute\" target=\"_blank\">collection of MathML attributes<\/a> for your reference.  For fallbacks, you can use the JavaScript library <a href=\"https:\/\/www.mathjax.org\/\" target=\"_blank\">MathJax<\/a>. If you need more tools, check out this link <a href=\"https:\/\/www.w3.org\/Math\/wiki\/Tools\" target=\"_blank\">here<\/a>.<\/p>\n<p>I take my leave with this codepen containing all of the examples above, for your easy reference.<\/p>\n<p><iframe height=\"354\" scrolling=\"no\" src=\"https:\/\/codepen.io\/\/rpsthecoder\/embed\/bdyXbV\/?height=354&theme-id=12825&default-tab=result\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\" style=\"width: 100%;\">See the Pen <a href=\"https:\/\/codepen.io\/\/rpsthecoder\/pen\/bdyXbV\/\" rel=\"nofollow\">MathML Examples<\/a> by Preethi (<a href=\"https:\/\/codepen.io\/\/rpsthecoder\" rel=\"nofollow\">@rpsthecoder<\/a>) on <a href=\"https:\/\/codepen.io\/\" rel=\"nofollow\">CodePen<\/a>. <\/iframe><\/p>\n<h2>Reference List of MathML Elements<\/h2>\n<table>\n<thead>\n<tr>\n<td>Elements<\/td>\n<td>Definition<\/td>\n<\/tr>\n<\/thead>\n<tr>\n<td><code>&lt;math&gt;<\/code><\/td>\n<td>Top-level MathML element<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mi&gt;<\/code><\/td>\n<td>Displays identifiers (variables,constants,function names)<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mn&gt;<\/code><\/td>\n<td>Displays numeric literal<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mo&gt;<\/code><\/td>\n<td>Displays operator<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;ms&gt;<\/code><\/td>\n<td>Shows string literal<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;msup&gt;<\/code><\/td>\n<td>Attaches a superscript to a base <\/td>\n<\/tr>\n<tr>\n<td><code>&lt;msub&gt;<\/code><\/td>\n<td>Attaches a subscript  to a base <\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mfrac&gt;<\/code><\/td>\n<td>Used to display fractions<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mroot&gt;<\/code><\/td>\n<td>Displays radicals with indices<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;msqrt&gt;<\/code><\/td>\n<td>Displays square root<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mtable&gt;<\/code><\/td>\n<td>Displays a table or matrix<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mtr&gt;<\/code><\/td>\n<td>Row of <code>&lt;mtable&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mtd&gt;<\/code><\/td>\n<td>Column in <code>&lt;mtr&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mrow&gt;<\/code><\/td>\n<td>Groups sub-expressions<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;mmultiscripts&gt;<\/code><\/td>\n<td>Used to add superscript, subscript, presuperscript & presubscript<\/td>\n<\/tr>\n<\/table>","protected":false},"excerpt":{"rendered":"<p>MathML is a markup language that can be used to display mathematical notations. You can use MathML tags directly from HTML5. It is useful for when you wish to show more than simple notations of Math in your web pages, and it\u2019s quite easy to use due to its simplicity and resemblance to HTML. MathML&hellip;<\/p>\n","protected":false},"author":145,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3392],"tags":[506],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Introduction to MathML - The Markup Language for Math - Hongkiat<\/title>\n<meta name=\"description\" content=\"MathML is a markup language that can be used to display mathematical notations. You can use MathML tags directly from HTML5. It is useful for when you\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introduction to MathML - The Markup Language for Math\" \/>\n<meta property=\"og:description\" content=\"MathML is a markup language that can be used to display mathematical notations. You can use MathML tags directly from HTML5. It is useful for when you\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-24T13:01:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-01-25T08:58:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex1.jpg\" \/>\n<meta name=\"author\" content=\"Preethi Ranjit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Preethi Ranjit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/\"},\"author\":{\"name\":\"Preethi Ranjit\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e981676afae36d1ff5feb75094950ab3\"},\"headline\":\"Introduction to MathML &#8211; The Markup Language for Math\",\"datePublished\":\"2015-09-24T13:01:20+00:00\",\"dateModified\":\"2016-01-25T08:58:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/\"},\"wordCount\":560,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/mathml-markup\\\/mathml-ex1.jpg\",\"keywords\":[\"HTML\"],\"articleSection\":[\"Coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/\",\"name\":\"Introduction to MathML - The Markup Language for Math - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/mathml-markup\\\/mathml-ex1.jpg\",\"datePublished\":\"2015-09-24T13:01:20+00:00\",\"dateModified\":\"2016-01-25T08:58:16+00:00\",\"description\":\"MathML is a markup language that can be used to display mathematical notations. You can use MathML tags directly from HTML5. It is useful for when you\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/mathml-markup\\\/mathml-ex1.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/mathml-markup\\\/mathml-ex1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mathml-markup\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction to MathML &#8211; The Markup Language for Math\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e981676afae36d1ff5feb75094950ab3\",\"name\":\"Preethi Ranjit\",\"description\":\"A .NET developer with a JavaScript background, Preethi is expert in front-end coding, JavaScript, HTML, and CSS.\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/preethi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Introduction to MathML - The Markup Language for Math - Hongkiat","description":"MathML is a markup language that can be used to display mathematical notations. You can use MathML tags directly from HTML5. It is useful for when you","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/","og_locale":"en_US","og_type":"article","og_title":"Introduction to MathML - The Markup Language for Math","og_description":"MathML is a markup language that can be used to display mathematical notations. You can use MathML tags directly from HTML5. It is useful for when you","og_url":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2015-09-24T13:01:20+00:00","article_modified_time":"2016-01-25T08:58:16+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex1.jpg","type":"","width":"","height":""}],"author":"Preethi Ranjit","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Preethi Ranjit","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/"},"author":{"name":"Preethi Ranjit","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e981676afae36d1ff5feb75094950ab3"},"headline":"Introduction to MathML &#8211; The Markup Language for Math","datePublished":"2015-09-24T13:01:20+00:00","dateModified":"2016-01-25T08:58:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/"},"wordCount":560,"commentCount":3,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex1.jpg","keywords":["HTML"],"articleSection":["Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/mathml-markup\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/","url":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/","name":"Introduction to MathML - The Markup Language for Math - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex1.jpg","datePublished":"2015-09-24T13:01:20+00:00","dateModified":"2016-01-25T08:58:16+00:00","description":"MathML is a markup language that can be used to display mathematical notations. You can use MathML tags directly from HTML5. It is useful for when you","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/mathml-markup\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex1.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/mathml-markup\/mathml-ex1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/mathml-markup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Introduction to MathML &#8211; The Markup Language for Math"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e981676afae36d1ff5feb75094950ab3","name":"Preethi Ranjit","description":"A .NET developer with a JavaScript background, Preethi is expert in front-end coding, JavaScript, HTML, and CSS.","url":"https:\/\/www.hongkiat.com\/blog\/author\/preethi\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-6rj","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/24757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/145"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=24757"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/24757\/revisions"}],"predecessor-version":[{"id":25533,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/24757\/revisions\/25533"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=24757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=24757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=24757"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=24757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}