HTML5 can use MathML elements in documents. The corresponding tags are . MathML is Mathematical Markup Language, a markup language based on XML (a subset of Standard Generalized Markup Language) for writing mathematical symbols and formulas on the Internet. Notice: Most browsers support MathML tags. If your browser does not support this tag, you can use the latest version of Firefox or Safari to view it. 1. Simple MathML Example The following is a simple MathML example.
The running result graph is as follows: 2. Use as MathML Characters Imagine the following is a markup used as the characters ⁢: XML/HTML Code Paste the contents into the clipboard. The following example adds some operators:
The running result graph is as follows: 3. MathML multiplication <msgroup> is used to group rows within <mstack> elements and <mlongdiv> elements so that their positions are relative to the alignment of the stack. The <msgroup> element with the shift attribute can be used to create simple multiplication. 1. Usage Following is the simple syntax to use this tag.
2. Parameters Here is a description of all parameters of this tag (expression - expression). 3. Attributes position: Specifies the horizontal position of the row within the group relative to the position controlled by the containing msgroup (according to its position and offset properties). The default value is 0. shift : Specifies the incremental shift of the positions of consecutive children (rows or groups) within the group. The default value is 0. 4. Case
4. Matrix expression The following example may be used to indicate a relatively simple 2x2 matrix. XML/HTML CodeCopy contents to clipboard The following example is a 2×2 matrix.
The running result graph is as follows: V. Conclusion This article introduces the common usage of MathML based on HTML. In this article, it introduces how to use it as a MathML character, focusing on the practical application of MathML multiplication. Through the analysis of each case, its usage and properties are introduced. The display of the running effect diagram can help readers better understand. Everyone is welcome to try actively. Sometimes it is easy to implement something when you see others do it, but when you try to implement it yourself, there will always be various problems. Don't be too ambitious and be diligent in doing it, so that you can understand it more deeply. This article is reprinted from the WeChat public account "Front-end Advanced Learning Exchange", which can be followed through the following QR code. To reprint this article, please contact the front-end advanced learning exchange public account. |
<<: What HTTP status codes have you seen?
>>: Design and implementation of Nodejs-Ipc
I searched the blog and it seems that no one has ...
On October 30, 2020, in Shanghai, the highly anti...
The fifth generation of mobile communication syst...
In the golden month of October just past, the 7th...
DediPath's Black Friday discounts this year a...
It has been a long time since I shared informatio...
The first half of NFV was a bumpy road, and it wa...
The business of the three major operators has bee...
VMware SD-WAN by VeloCloud prioritizes centralize...
With the hot and continuous iteration of large mo...
On November 27, the "2020 China Tongming Lak...
The Open Systems Interconnection (OSI) model is a...
[51CTO.com original article] On April 25, Huawei&...
Today's homes feature an increasing number of...
When there are a plethora of industry certificati...