In contrast,Chemical formulasare always "limited to a single line of printed symbols, which may include subscripts and superscripts."
Because MathML is for math (not chemistry) and chemical formulas never require more than one line of text, use(superscript)and(subscript)HTML native element. p>
Plants require CO2 for photosynthesis.
You may also consider combining this with theabbreviation element(if you need to semantically annotate chemical names).
Plants require CO2 for photosynthesis.
You may also consider usingIdiomatic textfor offsetting chemical equations from other text. This element is used to represent "a series of text that differs from normal text for some reason, such as idiomatic text, technical terms, classification names, etc."
Hydrogen and oxygen can combine to form water: 2H2 + O2 → 2H2O
MathMLis "an XML-based language for describing
In contrast,Chemical formulasare always "limited to a single line of printed symbols, which may include subscripts and superscripts."
Because MathML is for math (not chemistry) and chemical formulas never require more than one line of text, use
(superscript)and
(subscript)HTML native element. p>
You may also consider combining this with the
abbreviation element(if you need to semantically annotate chemical names).
You may also consider using
Idiomatic textfor offsetting chemical equations from other text. This element is used to represent "a series of text that differs from normal text for some reason, such as idiomatic text, technical terms, classification names, etc."