A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/mathml/elements/math below:

math ยท WebPlatform Docs

math Summary

The top-level element in MathML is <math>. Every valid MathML instance must be wrapped in <math> tags. In addition you must not nest a second <math> element in another, but you can have an arbitrary number of other child elements in it.

Overview Table
DOM Interface
mathml
Examples

This example shows a simple formula written in MathML:



<!DOCTYPE html>
<html>
  <head>
    <title>MathML in HTML5</title>
  </head>
  <body>

  <math>
    <mrow>
      <mrow>
        <msup>
          <mi>a</mi>
          <mn>2</mn>
        </msup>
        <mo>+</mo>
        <msup>
          <mi>b</mi>
          <mn>2</mn>
        </msup>
      </mrow>
      <mo>=</mo>
      <msup>
        <mi>c</mi>
        <mn>2</mn>
      </msup>
    </mrow>
  </math>

  </body>
</html>
Related specifications
MathML 3.0
W3C Recommendation
Attributes

In addition to the following attributes, the math element accepts any attributes of the mstyle element.

display
This enumerated attribute specifies how the enclosed MathML markup should be rendered. It can have one of the following values:
mode (depreacted)
Deprecated in favor of the display attribute.
Possible values are: display (which has the same effect as display="block") and inline.
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4