files/en-us/web/mathml/reference/global_attributes/index.md
Global attributes are attributes common to all MathML elements; they can be used on all elements, though they may have no effect on some elements.
Global attributes may be specified on all MathML elements, even those not specified in the standard. That means that any non-standard elements must still permit these attributes, even though using those elements means that the document is no longer MathML-compliant.
In addition to the basic MathML global attributes, the following global attributes also exist:
onclick, onfocus, etc.href attribute for making MathML element a hyperlink.autofocus
class
data-*
dir
ltr, which means left to right and is used to render mathematical expressions from the left to the right (e.g., English or Moroccan style);rtl, which means right to left and is used to render mathematical expressions from the right to the left (e.g., Maghreb or Machrek style);displaystyle:
true, which means normal.false, which means compact.id
mathbackground
mathcolor
mathsize
nonce
scriptlevel
style
tabindex
0 means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;tabindex. If several elements share the same tabindex, their relative order follows their relative positions in the document.{{Specifications}}
{{Compat}}