href

非標準:此功能是非標準的,並且不在標準軌道上。不要在面向 Web 的生產站點上使用它:它不會對每個使用者都起作用。實現之間也可能存在很大的不相容性,並且行為將來可能會發生變化。

href 全域性屬性 在指向指定 URL 的 MathML 元素上建立一個超連結。

示例

html
<!-- Make this math equation a link to Wikipedia's article
     about the Pythagorean theorem. -->
<math href="https://en.wikipedia.org/wiki/Pythagorean_theorem">
  <mi>c</mi>
  <mo>=</mo>
  <!-- Make this square root a link to corresponding
       SageMath's calculation. -->
  <msqrt href="https://sagecell.sagemath.org/?z=eJwrLiwq0TCOM9I2iTPSBAAeqgPO">
    <msup>
      <mn>3</mn>
      <mn>2</mn>
    </msup>
    <mo>+</mo>
    <msup>
      <mn>4</mn>
      <mn>2</mn>
    </msup>
  </msqrt>
  <mo>=</mo>
  <mn>5</mn>
</math>

規範

href 屬性在任何面向瀏覽器的規範中都沒有定義,但您可以在 MathML 4 中找到描述。

瀏覽器相容性

BCD 表格僅在瀏覽器中載入

另請參閱