<ms>

<ms> MathML 元素表示一個字串文字,旨在由程式語言和計算機代數系統解釋。

屬性

此元素的屬性包括全域性 MathML 屬性

一些瀏覽器也可能支援以下已棄用的屬性,並將用指定的開頭和結尾引號包圍 <ms> 元素的內容進行渲染

lquote

用於包圍內容的開頭引號。預設值為 &quot;

rquote

用於包圍內容的結尾引號。預設值為 &quot;

示例

預設渲染

html
<math display="block">
  <ms>Hello World!</ms>
</math>

舊版引號屬性

html
<math display="block">
  <ms lquote="" rquote="'">abc</ms>
</math>

規範

規範
MathML Core
# string-literal-ms

瀏覽器相容性

BCD 表格僅在啟用 JavaScript 的瀏覽器中載入。