The HTML5 MathML <semantics> tag is an inbuilt element in HTML 5. It is used to markup the mathematics there are two possible ways to markup mathematics.
- Presentation MathML is used to control the layout of any mathematical equations.
- Content MathML is designed to encode the semantic mathematical meaning and make expressions understandable to computer algebra systems.
This tag act as container elements that should contain child elements. There are tow more tag that performs with this tag those are <annotation> tag and the <annotation-xml>. This tag The <annotation> element is the container of those element and containing semantic information in a non-XML format, whereas the <annotation-xml> element contains content in an XML format, like Content MathML or OpenMath.
<semantics> child elements </semantics>
Attributes: This tag accepts below mentioned attributes and have to use those attributes on <annotation> and <annotation-xml>.
- definitionURL: This attribute holds the location of the annotation symbol.
- encoding: This attribute used to encode the semantic information in the annotation.
- cd: This attribute is used to holds the annotation symbols.
- name: This attribute holds the name of the annotation key symbol.
- src: This attribute holds the location of an external source for semantic information.
Below example illustrates the <semantics> tag in HTML 5:
Supported Browsers: The browsers supported by HTML 5 MathML <semantics> tag are listed below:
- HTML5 | MathML <mtd> Tag
- HTML5 | MathML <mtr> Tag
- HTML5 | MathML <mth> Tag
- HTML5 | MathML <mi> Tag
- HTML5 | MathML <mo> Tag
- HTML5 | MathML <ms> Tag
- HTML5 | MathML <mn> Tag
- HTML5 | MathML <mover> Tag
- HTML5 | MathML <merror> Tag
- HTML5 | MathML <mphantom> Tag
- HTML5 | MathML <mglyph> Tag
- HTML5 | MathML <mmultiscripts> Tag
- HTML5 | MathML <mlabeledtr> tag
- HTML5 | MathML <mfrac> tag
- HTML5 | MathML <mfenched> tag
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.