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
OneTechCloud has updated this month's discoun...
VMISS currently offers a 30% discount coupon for ...
Today, demand for faster Internet and data transm...
On May 10, according to media reports, mobile ana...
Ethernet IP has revolutionized the world of netwo...
According to foreign media, Germany's Handels...
RAKsmart's year-end promotion is in full swin...
Ping monitoring is one of the most popular techni...
This article briefly summarizes the history of te...
Zgovps is a new Chinese hosting provider that ope...
1. Introduction to network model In computer netw...
August 30 news: The 9th "International Sympo...
Huawei has always been an active promoter and pra...
Industry data: Gartner conducted a survey and int...
According to statistics from China News Service, ...