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
People are looking forward to a lower-priced broa...
Like most years, 2024 has seen a series of IT dis...
[51CTO.com original article] On August 29, the tw...
[[395527]] Nearly two years have passed since the...
Nowadays, surfing the Internet with mobile termin...
Since the commercialization of 5G networks, the s...
What is LPWAN? The Internet of Things (IoT) refer...
On November 16, the Ministry of Industry and Info...
"You only need to input the flowchart, and t...
According to forecasts, the number of 5G subscrib...
As American football star Tom Brady once said, &q...
OneTechCloud (Yikeyun) offers a 20% discount code...
spinservers is a site under Majestic Hosting Solu...
Hosteons is currently running a 5th anniversary p...