diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index 1bee06fe1ce2fd9..9df2f5c2432c8ae 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -5570,12 +5570,12 @@ /en-US/docs/Learn/Learning_and_getting_help /en-US/docs/Learn_web_development/Getting_started/Soft_skills/Research_and_learning /en-US/docs/Learn/MathML /en-US/docs/Web/MathML /en-US/docs/Learn/MathML/First_steps /en-US/docs/Web/MathML/Guides -/en-US/docs/Learn/MathML/First_steps/Fractions_and_roots /en-US/docs/Web/MathML/Guides/Fractions_and_roots -/en-US/docs/Learn/MathML/First_steps/Getting_started /en-US/docs/Web/MathML/Guides/Getting_started -/en-US/docs/Learn/MathML/First_steps/Scripts /en-US/docs/Web/MathML/Guides/Scripts -/en-US/docs/Learn/MathML/First_steps/Tables /en-US/docs/Web/MathML/Guides/Tables -/en-US/docs/Learn/MathML/First_steps/Text_containers /en-US/docs/Web/MathML/Guides/Text_containers -/en-US/docs/Learn/MathML/First_steps/Three_famous_mathematical_formulas /en-US/docs/Web/MathML/Guides/Three_famous_mathematical_formulas +/en-US/docs/Learn/MathML/First_steps/Fractions_and_roots /en-US/docs/Web/MathML/Tutorials/For_beginners/Fractions_and_roots +/en-US/docs/Learn/MathML/First_steps/Getting_started /en-US/docs/Web/MathML/Tutorials/For_beginners/Getting_started +/en-US/docs/Learn/MathML/First_steps/Scripts /en-US/docs/Web/MathML/Tutorials/For_beginners/Scripts +/en-US/docs/Learn/MathML/First_steps/Tables /en-US/docs/Web/MathML/Tutorials/For_beginners/Tables +/en-US/docs/Learn/MathML/First_steps/Text_containers /en-US/docs/Web/MathML/Tutorials/For_beginners/Text_containers +/en-US/docs/Learn/MathML/First_steps/Three_famous_mathematical_formulas /en-US/docs/Web/MathML/Tutorials/For_beginners/Three_famous_mathematical_formulas /en-US/docs/Learn/Open_a_file_in_a_browser /en-US/docs/Learn_web_development/Getting_started/Environment_setup/Dealing_with_files /en-US/docs/Learn/Other_learning_material /en-US/docs/Learn_web_development /en-US/docs/Learn/Pages_sites_servers_and_search_engines /en-US/docs/Learn_web_development/Getting_started/Environment_setup/Browsing_the_web @@ -6015,44 +6015,44 @@ /en-US/docs/Managing_screen_orientation /en-US/docs/Web/API/CSS_Object_Model/Managing_screen_orientation /en-US/docs/Manipulating_video_using_canvas /en-US/docs/Web/API/Canvas_API/Manipulating_video_using_canvas /en-US/docs/MathML /en-US/docs/Web/MathML -/en-US/docs/MathML/Attributes /en-US/docs/Web/MathML/Attribute -/en-US/docs/MathML/Attributes/Values /en-US/docs/Web/MathML/Values -/en-US/docs/MathML/Element /en-US/docs/Web/MathML/Element -/en-US/docs/MathML/Element/maction /en-US/docs/Web/MathML/Element/maction -/en-US/docs/MathML/Element/math /en-US/docs/Web/MathML/Element/math -/en-US/docs/MathML/Element/menclose /en-US/docs/Web/MathML/Element/menclose -/en-US/docs/MathML/Element/menclosed /en-US/docs/Web/MathML/Element/menclose -/en-US/docs/MathML/Element/merror /en-US/docs/Web/MathML/Element/merror -/en-US/docs/MathML/Element/mfenced /en-US/docs/Web/MathML/Element/mfenced -/en-US/docs/MathML/Element/mfrac /en-US/docs/Web/MathML/Element/mfrac -/en-US/docs/MathML/Element/mi /en-US/docs/Web/MathML/Element/mi -/en-US/docs/MathML/Element/mmultiscripts /en-US/docs/Web/MathML/Element/mmultiscripts -/en-US/docs/MathML/Element/mn /en-US/docs/Web/MathML/Element/mn -/en-US/docs/MathML/Element/mo /en-US/docs/Web/MathML/Element/mo -/en-US/docs/MathML/Element/mover /en-US/docs/Web/MathML/Element/mover -/en-US/docs/MathML/Element/mpadded /en-US/docs/Web/MathML/Element/mpadded -/en-US/docs/MathML/Element/mphantom /en-US/docs/Web/MathML/Element/mphantom -/en-US/docs/MathML/Element/mroot /en-US/docs/Web/MathML/Element/mroot -/en-US/docs/MathML/Element/mrow /en-US/docs/Web/MathML/Element/mrow -/en-US/docs/MathML/Element/ms /en-US/docs/Web/MathML/Element/ms -/en-US/docs/MathML/Element/mspace /en-US/docs/Web/MathML/Element/mspace -/en-US/docs/MathML/Element/msqrt /en-US/docs/Web/MathML/Element/msqrt -/en-US/docs/MathML/Element/mstyle /en-US/docs/Web/MathML/Element/mstyle -/en-US/docs/MathML/Element/msub /en-US/docs/Web/MathML/Element/msub -/en-US/docs/MathML/Element/msubsup /en-US/docs/Web/MathML/Element/msubsup -/en-US/docs/MathML/Element/msup /en-US/docs/Web/MathML/Element/msup -/en-US/docs/MathML/Element/mtable /en-US/docs/Web/MathML/Element/mtable -/en-US/docs/MathML/Element/mtd /en-US/docs/Web/MathML/Element/mtd -/en-US/docs/MathML/Element/mtext /en-US/docs/Web/MathML/Element/mtext -/en-US/docs/MathML/Element/mtr /en-US/docs/Web/MathML/Element/mtr -/en-US/docs/MathML/Element/munder /en-US/docs/Web/MathML/Element/munder -/en-US/docs/MathML/Element/munderover /en-US/docs/Web/MathML/Element/munderover -/en-US/docs/MathML/Element/semantics /en-US/docs/Web/MathML/Element/semantics -/en-US/docs/MathML/Examples /en-US/docs/Web/MathML/Examples -/en-US/docs/MathML/Examples/Deriving_the_Quadratic_Formula /en-US/docs/Web/MathML/Examples/Deriving_the_Quadratic_Formula -/en-US/docs/MathML/Examples/MathML_Pythagorean_Theorem /en-US/docs/Web/MathML/Examples/MathML_Pythagorean_Theorem -/en-US/docs/Math_ML_Deriving_the_Quadratic_Formula /en-US/docs/Web/MathML/Examples/Deriving_the_Quadratic_Formula -/en-US/docs/Math_Rendering /en-US/docs/Web/MathML/Examples/MathML_Pythagorean_Theorem +/en-US/docs/MathML/Attributes /en-US/docs/Web/MathML/Reference/Attribute +/en-US/docs/MathML/Attributes/Values /en-US/docs/Web/MathML/Reference/Values +/en-US/docs/MathML/Element /en-US/docs/Web/MathML/Reference/Element +/en-US/docs/MathML/Element/maction /en-US/docs/Web/MathML/Reference/Element/maction +/en-US/docs/MathML/Element/math /en-US/docs/Web/MathML/Reference/Element/math +/en-US/docs/MathML/Element/menclose /en-US/docs/Web/MathML/Reference/Element/menclose +/en-US/docs/MathML/Element/menclosed /en-US/docs/Web/MathML/Reference/Element/menclose +/en-US/docs/MathML/Element/merror /en-US/docs/Web/MathML/Reference/Element/merror +/en-US/docs/MathML/Element/mfenced /en-US/docs/Web/MathML/Reference/Element/mfenced +/en-US/docs/MathML/Element/mfrac /en-US/docs/Web/MathML/Reference/Element/mfrac +/en-US/docs/MathML/Element/mi /en-US/docs/Web/MathML/Reference/Element/mi +/en-US/docs/MathML/Element/mmultiscripts /en-US/docs/Web/MathML/Reference/Element/mmultiscripts +/en-US/docs/MathML/Element/mn /en-US/docs/Web/MathML/Reference/Element/mn +/en-US/docs/MathML/Element/mo /en-US/docs/Web/MathML/Reference/Element/mo +/en-US/docs/MathML/Element/mover /en-US/docs/Web/MathML/Reference/Element/mover +/en-US/docs/MathML/Element/mpadded /en-US/docs/Web/MathML/Reference/Element/mpadded +/en-US/docs/MathML/Element/mphantom /en-US/docs/Web/MathML/Reference/Element/mphantom +/en-US/docs/MathML/Element/mroot /en-US/docs/Web/MathML/Reference/Element/mroot +/en-US/docs/MathML/Element/mrow /en-US/docs/Web/MathML/Reference/Element/mrow +/en-US/docs/MathML/Element/ms /en-US/docs/Web/MathML/Reference/Element/ms +/en-US/docs/MathML/Element/mspace /en-US/docs/Web/MathML/Reference/Element/mspace +/en-US/docs/MathML/Element/msqrt /en-US/docs/Web/MathML/Reference/Element/msqrt +/en-US/docs/MathML/Element/mstyle /en-US/docs/Web/MathML/Reference/Element/mstyle +/en-US/docs/MathML/Element/msub /en-US/docs/Web/MathML/Reference/Element/msub +/en-US/docs/MathML/Element/msubsup /en-US/docs/Web/MathML/Reference/Element/msubsup +/en-US/docs/MathML/Element/msup /en-US/docs/Web/MathML/Reference/Element/msup +/en-US/docs/MathML/Element/mtable /en-US/docs/Web/MathML/Reference/Element/mtable +/en-US/docs/MathML/Element/mtd /en-US/docs/Web/MathML/Reference/Element/mtd +/en-US/docs/MathML/Element/mtext /en-US/docs/Web/MathML/Reference/Element/mtext +/en-US/docs/MathML/Element/mtr /en-US/docs/Web/MathML/Reference/Element/mtr +/en-US/docs/MathML/Element/munder /en-US/docs/Web/MathML/Reference/Element/munder +/en-US/docs/MathML/Element/munderover /en-US/docs/Web/MathML/Reference/Element/munderover +/en-US/docs/MathML/Element/semantics /en-US/docs/Web/MathML/Reference/Element/semantics +/en-US/docs/MathML/Examples /en-US/docs/Web/MathML/Guides +/en-US/docs/MathML/Examples/Deriving_the_Quadratic_Formula /en-US/docs/Web/MathML/Guides/Deriving_the_quadratic_formula +/en-US/docs/MathML/Examples/MathML_Pythagorean_Theorem /en-US/docs/Web/MathML/Guides/Proving_the_Pythagorean_theorem +/en-US/docs/Math_ML_Deriving_the_Quadratic_Formula /en-US/docs/Web/MathML/Guides/Deriving_the_quadratic_formula +/en-US/docs/Math_Rendering /en-US/docs/Web/MathML/Guides/Proving_the_Pythagorean_theorem /en-US/docs/Media_Capabilities_API /en-US/docs/Web/API/Media_Capabilities_API /en-US/docs/Media_Capabilities_API/decodingInfo /en-US/docs/Web/API/MediaCapabilities/decodingInfo /en-US/docs/Media_Capabilities_API/encodingInfo /en-US/docs/Web/API/MediaCapabilities/encodingInfo @@ -6207,7 +6207,7 @@ /en-US/docs/Mozilla/Firefox/Releases/Firefox_41_for_developers /en-US/docs/Mozilla/Firefox/Releases/41 /en-US/docs/Mozilla/Firefox/Releases/Firefox_47_for_developers /en-US/docs/Mozilla/Firefox/Releases/47 /en-US/docs/Mozilla/Firefox/Releases/developers /en-US/docs/Mozilla/Firefox/Releases/63 -/en-US/docs/Mozilla/MathML_Project/Fonts /en-US/docs/Web/MathML/Fonts +/en-US/docs/Mozilla/MathML_Project/Fonts /en-US/docs/Web/MathML/Guides/Fonts /en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler https://firefox-source-docs.mozilla.org/devtools-user/performance/index.html /en-US/docs/Mozilla/Performance/Scroll-linked_effects https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html /en-US/docs/Mozilla/Projects/NSPR https://firefox-source-docs.mozilla.org/nspr/index.html @@ -6610,8 +6610,8 @@ /en-US/docs/Mozilla/Thunderbird/Autoconfiguration/FileFormat/HowTo https://www.bucksch.org/1/projects/thunderbird/autoconfiguration/how-to-create-your-own-config-file.html /en-US/docs/Mozilla/Virtualenv https://github.com/mdn/archived-content/tree/main/files/en-us/mozilla/virtualenv /en-US/docs/Mozilla_CSS_Extensions /en-US/docs/Web/CSS/Mozilla_Extensions -/en-US/docs/Mozilla_MathML_Project/Authoring /en-US/docs/Web/MathML/Authoring -/en-US/docs/Mozilla_MathML_Project/Authoring_MathML /en-US/docs/Web/MathML/Authoring +/en-US/docs/Mozilla_MathML_Project/Authoring /en-US/docs/Web/MathML/Guides/Authoring +/en-US/docs/Mozilla_MathML_Project/Authoring_MathML /en-US/docs/Web/MathML/Guides/Authoring /en-US/docs/Mozilla_event_reference /en-US/docs/Web/Events /en-US/docs/Mozilla_event_reference/DOMContentLoaded_(event) /en-US/docs/Web/API/Document/DOMContentLoaded_event /en-US/docs/Mozilla_event_reference/DOMContentLoading (event) /en-US/docs/Web/API/Document/DOMContentLoaded_event @@ -12894,7 +12894,7 @@ /en-US/docs/Web/HTML/Element/input/ /en-US/docs/Web/HTML/Element/col /en-US/docs/Web/HTML/Element/input/ /en-US/docs/Web/HTML/Element/colgroup /en-US/docs/Web/HTML/Element/input/Date_and_time_formats /en-US/docs/Web/HTML/Date_and_time_formats -/en-US/docs/Web/HTML/Element/math /en-US/docs/Web/MathML/Element/math +/en-US/docs/Web/HTML/Element/math /en-US/docs/Web/MathML/Reference/Element/math /en-US/docs/Web/HTML/Element/menuitem /en-US/docs/Web/HTML/Element /en-US/docs/Web/HTML/Element/s_ource /en-US/docs/Web/HTML/Element/source /en-US/docs/Web/HTML/Element/video/canplay_event /en-US/docs/Web/API/HTMLMediaElement/canplay_event @@ -13868,12 +13868,74 @@ /en-US/docs/Web/Manifest/shortcuts /en-US/docs/Web/Progressive_web_apps/Manifest/Reference/shortcuts /en-US/docs/Web/Manifest/start_url /en-US/docs/Web/Progressive_web_apps/Manifest/Reference/start_url /en-US/docs/Web/Manifest/theme_color /en-US/docs/Web/Progressive_web_apps/Manifest/Reference/theme_color -/en-US/docs/Web/MathML/Attribute/Values /en-US/docs/Web/MathML/Values -/en-US/docs/Web/MathML/Element/menclosed /en-US/docs/Web/MathML/Element/menclose -/en-US/docs/Web/MathML/Element/none /en-US/docs/Web/MathML/Element/mmultiscripts -/en-US/docs/Web/MathML/Fonts/Test /en-US/docs/Web/MathML/Fonts -/en-US/docs/Web/MathML/Global_attributes/mathvariant /en-US/docs/Web/MathML/Element/mi#mathvariant +/en-US/docs/Web/MathML/Attribute /en-US/docs/Web/MathML/Reference/Attribute +/en-US/docs/Web/MathML/Attribute/Values /en-US/docs/Web/MathML/Reference/Values +/en-US/docs/Web/MathML/Authoring /en-US/docs/Web/MathML/Guides/Authoring +/en-US/docs/Web/MathML/Element /en-US/docs/Web/MathML/Reference/Element +/en-US/docs/Web/MathML/Element/annotation /en-US/docs/Web/MathML/Reference/Element/annotation +/en-US/docs/Web/MathML/Element/annotation-xml /en-US/docs/Web/MathML/Reference/Element/annotation-xml +/en-US/docs/Web/MathML/Element/maction /en-US/docs/Web/MathML/Reference/Element/maction +/en-US/docs/Web/MathML/Element/math /en-US/docs/Web/MathML/Reference/Element/math +/en-US/docs/Web/MathML/Element/menclose /en-US/docs/Web/MathML/Reference/Element/menclose +/en-US/docs/Web/MathML/Element/menclosed /en-US/docs/Web/MathML/Reference/Element/menclose +/en-US/docs/Web/MathML/Element/merror /en-US/docs/Web/MathML/Reference/Element/merror +/en-US/docs/Web/MathML/Element/mfenced /en-US/docs/Web/MathML/Reference/Element/mfenced +/en-US/docs/Web/MathML/Element/mfrac /en-US/docs/Web/MathML/Reference/Element/mfrac +/en-US/docs/Web/MathML/Element/mi /en-US/docs/Web/MathML/Reference/Element/mi +/en-US/docs/Web/MathML/Element/mmultiscripts /en-US/docs/Web/MathML/Reference/Element/mmultiscripts +/en-US/docs/Web/MathML/Element/mn /en-US/docs/Web/MathML/Reference/Element/mn +/en-US/docs/Web/MathML/Element/mo /en-US/docs/Web/MathML/Reference/Element/mo +/en-US/docs/Web/MathML/Element/mover /en-US/docs/Web/MathML/Reference/Element/mover +/en-US/docs/Web/MathML/Element/mpadded /en-US/docs/Web/MathML/Reference/Element/mpadded +/en-US/docs/Web/MathML/Element/mphantom /en-US/docs/Web/MathML/Reference/Element/mphantom +/en-US/docs/Web/MathML/Element/mprescripts /en-US/docs/Web/MathML/Reference/Element/mprescripts +/en-US/docs/Web/MathML/Element/mroot /en-US/docs/Web/MathML/Reference/Element/mroot +/en-US/docs/Web/MathML/Element/mrow /en-US/docs/Web/MathML/Reference/Element/mrow +/en-US/docs/Web/MathML/Element/ms /en-US/docs/Web/MathML/Reference/Element/ms +/en-US/docs/Web/MathML/Element/mspace /en-US/docs/Web/MathML/Reference/Element/mspace +/en-US/docs/Web/MathML/Element/msqrt /en-US/docs/Web/MathML/Reference/Element/msqrt +/en-US/docs/Web/MathML/Element/mstyle /en-US/docs/Web/MathML/Reference/Element/mstyle +/en-US/docs/Web/MathML/Element/msub /en-US/docs/Web/MathML/Reference/Element/msub +/en-US/docs/Web/MathML/Element/msubsup /en-US/docs/Web/MathML/Reference/Element/msubsup +/en-US/docs/Web/MathML/Element/msup /en-US/docs/Web/MathML/Reference/Element/msup +/en-US/docs/Web/MathML/Element/mtable /en-US/docs/Web/MathML/Reference/Element/mtable +/en-US/docs/Web/MathML/Element/mtd /en-US/docs/Web/MathML/Reference/Element/mtd +/en-US/docs/Web/MathML/Element/mtext /en-US/docs/Web/MathML/Reference/Element/mtext +/en-US/docs/Web/MathML/Element/mtr /en-US/docs/Web/MathML/Reference/Element/mtr +/en-US/docs/Web/MathML/Element/munder /en-US/docs/Web/MathML/Reference/Element/munder +/en-US/docs/Web/MathML/Element/munderover /en-US/docs/Web/MathML/Reference/Element/munderover +/en-US/docs/Web/MathML/Element/none /en-US/docs/Web/MathML/Reference/Element/mmultiscripts +/en-US/docs/Web/MathML/Element/semantics /en-US/docs/Web/MathML/Reference/Element/semantics +/en-US/docs/Web/MathML/Examples /en-US/docs/Web/MathML/Guides +/en-US/docs/Web/MathML/Examples/Deriving_the_Quadratic_Formula /en-US/docs/Web/MathML/Guides/Deriving_the_quadratic_formula +/en-US/docs/Web/MathML/Examples/MathML_Pythagorean_Theorem /en-US/docs/Web/MathML/Guides/Proving_the_Pythagorean_theorem +/en-US/docs/Web/MathML/Fonts /en-US/docs/Web/MathML/Guides/Fonts +/en-US/docs/Web/MathML/Fonts/Test /en-US/docs/Web/MathML/Guides/Fonts +/en-US/docs/Web/MathML/Global_attributes /en-US/docs/Web/MathML/Reference/Global_attributes +/en-US/docs/Web/MathML/Global_attributes/dir /en-US/docs/Web/MathML/Reference/Global_attributes/dir +/en-US/docs/Web/MathML/Global_attributes/displaystyle /en-US/docs/Web/MathML/Reference/Global_attributes/displaystyle +/en-US/docs/Web/MathML/Global_attributes/href /en-US/docs/Web/MathML/Reference/Global_attributes/href +/en-US/docs/Web/MathML/Global_attributes/mathbackground /en-US/docs/Web/MathML/Reference/Global_attributes/mathbackground +/en-US/docs/Web/MathML/Global_attributes/mathcolor /en-US/docs/Web/MathML/Reference/Global_attributes/mathcolor +/en-US/docs/Web/MathML/Global_attributes/mathsize /en-US/docs/Web/MathML/Reference/Global_attributes/mathsize +/en-US/docs/Web/MathML/Global_attributes/mathvariant /en-US/docs/Web/MathML/Reference/Element/mi#mathvariant +/en-US/docs/Web/MathML/Global_attributes/scriptlevel /en-US/docs/Web/MathML/Reference/Global_attributes/scriptlevel +/en-US/docs/Web/MathML/Guides/Fractions_and_roots /en-US/docs/Web/MathML/Tutorials/For_beginners/Fractions_and_roots +/en-US/docs/Web/MathML/Guides/Getting_started /en-US/docs/Web/MathML/Tutorials/For_beginners/Getting_started +/en-US/docs/Web/MathML/Guides/Scripts /en-US/docs/Web/MathML/Tutorials/For_beginners/Scripts +/en-US/docs/Web/MathML/Guides/Tables /en-US/docs/Web/MathML/Tutorials/For_beginners/Tables +/en-US/docs/Web/MathML/Guides/Text_containers /en-US/docs/Web/MathML/Tutorials/For_beginners/Text_containers +/en-US/docs/Web/MathML/Guides/Three_famous_mathematical_formulas /en-US/docs/Web/MathML/Tutorials/For_beginners/Three_famous_mathematical_formulas /en-US/docs/Web/MathML/Index /en-US/docs/Web/MathML +/en-US/docs/Web/MathML/Reference/Attributes /en-US/docs/Web/MathML/Reference/Attribute +/en-US/docs/Web/MathML/Tutorials/Fractions_and_roots /en-US/docs/Web/MathML/Tutorials/For_beginners/Fractions_and_roots +/en-US/docs/Web/MathML/Tutorials/Getting started /en-US/docs/Web/MathML/Tutorials/For_beginners/Getting_started +/en-US/docs/Web/MathML/Tutorials/Getting_started /en-US/docs/Web/MathML/Tutorials/For_beginners/Getting_started +/en-US/docs/Web/MathML/Tutorials/Scripts /en-US/docs/Web/MathML/Tutorials/For_beginners/Scripts +/en-US/docs/Web/MathML/Tutorials/Tables /en-US/docs/Web/MathML/Tutorials/For_beginners/Tables +/en-US/docs/Web/MathML/Tutorials/Text_containers /en-US/docs/Web/MathML/Tutorials/For_beginners/Text_containers +/en-US/docs/Web/MathML/Tutorials/Three_famous_mathematical_formulas /en-US/docs/Web/MathML/Tutorials/For_beginners/Three_famous_mathematical_formulas +/en-US/docs/Web/MathML/Values /en-US/docs/Web/MathML/Reference/Values /en-US/docs/Web/Media/Audio_and_video_delivery /en-US/docs/Web/Media/Guides/Audio_and_video_delivery /en-US/docs/Web/Media/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video /en-US/docs/Web/Media/Guides/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video /en-US/docs/Web/Media/Audio_and_video_delivery/Cross-browser_audio_basics /en-US/docs/Web/Media/Guides/Audio_and_video_delivery/Cross-browser_audio_basics diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index c4c52c59ca62772..be69b3024fb4d58 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -121172,17 +121172,7 @@ "Sheppy" ] }, - "Web/MathML/Attribute": { - "modified": "2020-10-23T04:07:29.622Z", - "contributors": [ - "rachelandrew", - "fscholz", - "doersino", - "Draussenduscher", - "Sheppy" - ] - }, - "Web/MathML/Authoring": { + "Web/MathML/Guides/Authoring": { "modified": "2020-11-28T13:32:39.862Z", "contributors": [ "mfuji09", @@ -121206,7 +121196,51 @@ "christianlerch" ] }, - "Web/MathML/Element": { + "Web/MathML/Guides/Deriving_the_quadratic_formula": { + "modified": "2019-11-21T15:09:18.981Z", + "contributors": [ + "NewtSalamander", + "maryannetpdx", + "SphinxKnight", + "aseijo1", + "fred.wang", + "Darbicus", + "jonny_dedpahn", + "kscarfone", + "fscholz", + "Paul_Mollomo" + ] + }, + "Web/MathML/Guides/Proving_the_Pythagorean_theorem": { + "modified": "2019-04-19T17:22:32.633Z", + "contributors": [ + "asmeurer", + "grzegorz-zur", + "hbelay", + "maryannetpdx", + "Tao", + "nielsdg", + "SphinxKnight", + "mouse-karaganda", + "rohspeed", + "Sheppy", + "bfontecc", + "fscholz", + "Paul_Mollomo", + "ethertank" + ] + }, + "Web/MathML/Reference/Attribute": { + "modified": "2020-10-23T04:07:29.622Z", + "contributors": [ + "rachelandrew", + "fscholz", + "doersino", + "Draussenduscher", + "Sheppy" + ] + }, + "Web/MathML/Reference/Element": { "modified": "2020-08-24T00:21:20.916Z", "contributors": [ "fscholz", @@ -121217,11 +121251,11 @@ "teoli" ] }, - "Web/MathML/Element/maction": { + "Web/MathML/Reference/Element/maction": { "modified": "2020-12-08T06:14:58.548Z", "contributors": ["rachelandrew", "lucian95", "Yaffle", "fscholz", "Sheppy"] }, - "Web/MathML/Element/math": { + "Web/MathML/Reference/Element/math": { "modified": "2020-10-15T21:07:40.546Z", "contributors": [ "LucasLarson", @@ -121233,7 +121267,7 @@ "teoli" ] }, - "Web/MathML/Element/menclose": { + "Web/MathML/Reference/Element/menclose": { "modified": "2020-10-23T04:20:01.310Z", "contributors": [ "rachelandrew", @@ -121245,11 +121279,11 @@ "jswisher" ] }, - "Web/MathML/Element/merror": { + "Web/MathML/Reference/Element/merror": { "modified": "2020-12-08T06:39:00.520Z", "contributors": ["rachelandrew", "lucian95", "fscholz", "Sheppy"] }, - "Web/MathML/Element/mfenced": { + "Web/MathML/Reference/Element/mfenced": { "modified": "2020-10-15T21:07:18.297Z", "contributors": [ "fscholz", @@ -121261,7 +121295,7 @@ "jswisher" ] }, - "Web/MathML/Element/mfrac": { + "Web/MathML/Reference/Element/mfrac": { "modified": "2020-12-08T06:57:45.695Z", "contributors": [ "rachelandrew", @@ -121273,7 +121307,7 @@ "jswisher" ] }, - "Web/MathML/Element/mi": { + "Web/MathML/Reference/Element/mi": { "modified": "2020-12-08T06:58:12.774Z", "contributors": [ "rachelandrew", @@ -121284,7 +121318,7 @@ "jswisher" ] }, - "Web/MathML/Element/mmultiscripts": { + "Web/MathML/Reference/Element/mmultiscripts": { "modified": "2020-12-08T06:58:29.201Z", "contributors": [ "rachelandrew", @@ -121294,7 +121328,7 @@ "Sheppy" ] }, - "Web/MathML/Element/mn": { + "Web/MathML/Reference/Element/mn": { "modified": "2020-12-08T06:58:45.386Z", "contributors": [ "rachelandrew", @@ -121305,7 +121339,7 @@ "jswisher" ] }, - "Web/MathML/Element/mo": { + "Web/MathML/Reference/Element/mo": { "modified": "2020-12-08T06:58:55.815Z", "contributors": [ "rachelandrew", @@ -121316,7 +121350,7 @@ "jswisher" ] }, - "Web/MathML/Element/mover": { + "Web/MathML/Reference/Element/mover": { "modified": "2020-12-08T06:59:16.606Z", "contributors": [ "rachelandrew", @@ -121327,7 +121361,7 @@ "jswisher" ] }, - "Web/MathML/Element/mpadded": { + "Web/MathML/Reference/Element/mpadded": { "modified": "2020-12-08T06:59:27.492Z", "contributors": [ "rachelandrew", @@ -121338,7 +121372,7 @@ "jswisher" ] }, - "Web/MathML/Element/mphantom": { + "Web/MathML/Reference/Element/mphantom": { "modified": "2020-12-08T06:59:46.396Z", "contributors": [ "rachelandrew", @@ -121349,7 +121383,7 @@ "jswisher" ] }, - "Web/MathML/Element/mroot": { + "Web/MathML/Reference/Element/mroot": { "modified": "2020-12-08T06:59:59.854Z", "contributors": [ "rachelandrew", @@ -121360,7 +121394,7 @@ "jswisher" ] }, - "Web/MathML/Element/mrow": { + "Web/MathML/Reference/Element/mrow": { "modified": "2020-12-08T07:00:13.818Z", "contributors": [ "rachelandrew", @@ -121371,7 +121405,7 @@ "jswisher" ] }, - "Web/MathML/Element/ms": { + "Web/MathML/Reference/Element/ms": { "modified": "2020-12-08T07:00:30.106Z", "contributors": [ "rachelandrew", @@ -121381,11 +121415,11 @@ "jswisher" ] }, - "Web/MathML/Element/mspace": { + "Web/MathML/Reference/Element/mspace": { "modified": "2020-12-08T07:00:44.851Z", "contributors": ["rachelandrew", "fscholz", "Sheppy", "jswisher"] }, - "Web/MathML/Element/msqrt": { + "Web/MathML/Reference/Element/msqrt": { "modified": "2020-12-08T07:00:57.848Z", "contributors": [ "rachelandrew", @@ -121396,7 +121430,7 @@ "jswisher" ] }, - "Web/MathML/Element/mstyle": { + "Web/MathML/Reference/Element/mstyle": { "modified": "2020-12-08T07:01:10.016Z", "contributors": [ "rachelandrew", @@ -121408,7 +121442,7 @@ "Sheppy" ] }, - "Web/MathML/Element/msub": { + "Web/MathML/Reference/Element/msub": { "modified": "2020-12-08T07:01:23.829Z", "contributors": [ "rachelandrew", @@ -121419,7 +121453,7 @@ "jswisher" ] }, - "Web/MathML/Element/msubsup": { + "Web/MathML/Reference/Element/msubsup": { "modified": "2020-12-08T07:01:50.272Z", "contributors": [ "rachelandrew", @@ -121431,7 +121465,7 @@ "jswisher" ] }, - "Web/MathML/Element/msup": { + "Web/MathML/Reference/Element/msup": { "modified": "2020-12-08T07:02:01.978Z", "contributors": [ "rachelandrew", @@ -121442,7 +121476,7 @@ "jswisher" ] }, - "Web/MathML/Element/mtable": { + "Web/MathML/Reference/Element/mtable": { "modified": "2020-12-08T07:04:03.214Z", "contributors": [ "rachelandrew", @@ -121453,7 +121487,7 @@ "Sheppy" ] }, - "Web/MathML/Element/mtd": { + "Web/MathML/Reference/Element/mtd": { "modified": "2020-12-08T07:04:36.899Z", "contributors": [ "rachelandrew", @@ -121464,7 +121498,7 @@ "Sheppy" ] }, - "Web/MathML/Element/mtext": { + "Web/MathML/Reference/Element/mtext": { "modified": "2020-12-08T07:05:09.077Z", "contributors": [ "rachelandrew", @@ -121475,7 +121509,7 @@ "jswisher" ] }, - "Web/MathML/Element/mtr": { + "Web/MathML/Reference/Element/mtr": { "modified": "2020-12-08T07:05:31.494Z", "contributors": [ "rachelandrew", @@ -121485,7 +121519,7 @@ "Sheppy" ] }, - "Web/MathML/Element/munder": { + "Web/MathML/Reference/Element/munder": { "modified": "2020-12-08T07:05:44.621Z", "contributors": [ "rachelandrew", @@ -121497,7 +121531,7 @@ "jswisher" ] }, - "Web/MathML/Element/munderover": { + "Web/MathML/Reference/Element/munderover": { "modified": "2020-12-08T07:05:56.617Z", "contributors": [ "rachelandrew", @@ -121510,57 +121544,11 @@ "jswisher" ] }, - "Web/MathML/Element/semantics": { + "Web/MathML/Reference/Element/semantics": { "modified": "2020-12-08T07:06:26.029Z", "contributors": ["rachelandrew", "fscholz", "Sheppy", "jswisher"] }, - "Web/MathML/Examples": { - "modified": "2019-03-23T23:33:29.196Z", - "contributors": [ - "maryannetpdx", - "SphinxKnight", - "nielsdg", - "ethertank", - "ChaitanyaGSNR", - "Sheppy", - "fscholz" - ] - }, - "Web/MathML/Examples/Deriving_the_Quadratic_Formula": { - "modified": "2019-11-21T15:09:18.981Z", - "contributors": [ - "NewtSalamander", - "maryannetpdx", - "SphinxKnight", - "aseijo1", - "fred.wang", - "Darbicus", - "jonny_dedpahn", - "kscarfone", - "fscholz", - "Paul_Mollomo" - ] - }, - "Web/MathML/Examples/MathML_Pythagorean_Theorem": { - "modified": "2019-04-19T17:22:32.633Z", - "contributors": [ - "asmeurer", - "grzegorz-zur", - "hbelay", - "maryannetpdx", - "Tao", - "nielsdg", - "SphinxKnight", - "mouse-karaganda", - "rohspeed", - "Sheppy", - "bfontecc", - "fscholz", - "Paul_Mollomo", - "ethertank" - ] - }, - "Web/MathML/Values": { + "Web/MathML/Reference/Values": { "modified": "2019-10-25T11:46:38.660Z", "contributors": ["fscholz", "maryannetpdx", "Sheppy"] }, diff --git a/files/en-us/glossary/mathml/index.md b/files/en-us/glossary/mathml/index.md index 3ceae45a8a64479..5fbd1a489fd02c5 100644 --- a/files/en-us/glossary/mathml/index.md +++ b/files/en-us/glossary/mathml/index.md @@ -12,5 +12,5 @@ page-type: glossary-definition - [MathML](https://en.wikipedia.org/wiki/MathML) on Wikipedia - [MathML](/en-US/docs/Web/MathML) -- [Authoring MathML](/en-US/docs/Web/MathML/Authoring) +- [Authoring MathML](/en-US/docs/Web/MathML/Guides/Authoring) - [What is MathML](https://www.w3.org/Math/whatIsMathML.html) diff --git a/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md b/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md index 51b470e075d082a..0eae06b8cd1b87f 100644 --- a/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md +++ b/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md @@ -121,8 +121,8 @@ This section lists `page-type` values for pages under [Web/JavaScript](/en-US/do This section lists `page-type` values for pages under [Web/MathML](/en-US/docs/Web/MathML). Every page in that part of the tree must have a `page-type`, and its value must be one of those listed below or one of the [generic page type](#generic_page_types) values. -- `mathml-attribute`: an MathML attribute, like [`mathcolor`](/en-US/docs/Web/MathML/Global_attributes/mathcolor). -- `mathml-element`: an HTML element, like [``](/en-US/docs/Web/MathML/Element/msqrt). +- `mathml-attribute`: an MathML attribute, like [`mathcolor`](/en-US/docs/Web/MathML/Reference/Global_attributes/mathcolor). +- `mathml-element`: an HTML element, like [``](/en-US/docs/Web/MathML/Reference/Element/msqrt). ### SVG page types diff --git a/files/en-us/mozilla/firefox/releases/106/index.md b/files/en-us/mozilla/firefox/releases/106/index.md index bb8b0f377aa66d6..26c7a7191adce96 100644 --- a/files/en-us/mozilla/firefox/releases/106/index.md +++ b/files/en-us/mozilla/firefox/releases/106/index.md @@ -17,7 +17,7 @@ This article provides information about the changes in Firefox 106 that will aff ### MathML -- The [``](/en-US/docs/Web/MathML/Element/semantics) and [``](/en-US/docs/Web/MathML/Element/maction) MathML elements now only render the first child element by default ([Firefox bug 1588733](https://bugzil.la/1588733)). +- The [``](/en-US/docs/Web/MathML/Reference/Element/semantics) and [``](/en-US/docs/Web/MathML/Reference/Element/maction) MathML elements now only render the first child element by default ([Firefox bug 1588733](https://bugzil.la/1588733)). ### CSS diff --git a/files/en-us/mozilla/firefox/releases/107/index.md b/files/en-us/mozilla/firefox/releases/107/index.md index e59782189aa037e..b90f5c7f20cb761 100644 --- a/files/en-us/mozilla/firefox/releases/107/index.md +++ b/files/en-us/mozilla/firefox/releases/107/index.md @@ -16,7 +16,7 @@ No notable changes ### MathML -- Deprecated `lquote` and `rquote` attributes of the [``](/en-US/docs/Web/MathML/Element/ms) MathML element for custom opening and closing quotes are now disabled. +- Deprecated `lquote` and `rquote` attributes of the [``](/en-US/docs/Web/MathML/Reference/Element/ms) MathML element for custom opening and closing quotes are now disabled. This behavior is configured via the `mathml.ms_lquote_rquote_attributes.disabled` preference which is set to `true` by default ([Firefox bug 1793387](https://bugzil.la/1793387)). ### CSS diff --git a/files/en-us/mozilla/firefox/releases/118/index.md b/files/en-us/mozilla/firefox/releases/118/index.md index a9f34967083b9cd..204aa28c190bb19 100644 --- a/files/en-us/mozilla/firefox/releases/118/index.md +++ b/files/en-us/mozilla/firefox/releases/118/index.md @@ -32,8 +32,8 @@ No notable changes. ### MathML -- The [``](/en-US/docs/Web/MathML/Element/semantics) and [``](/en-US/docs/Web/MathML/Element/maction) elements only render the first child element by default now. The `mathml.legacy_maction_and_semantics_implementations.disabled` preference has been removed (Firefox bug [1788223](https://bugzil.la/1788223)). -- All values of the [`mathvariant`](/en-US/docs/Web/MathML/Element/mi#mathvariant) attribute other than `normal` are now deprecated. Additionally, the attribute's use is now limited to the `` element (Firefox bug [1845461](https://bugzil.la/1845461)). +- The [``](/en-US/docs/Web/MathML/Reference/Element/semantics) and [``](/en-US/docs/Web/MathML/Reference/Element/maction) elements only render the first child element by default now. The `mathml.legacy_maction_and_semantics_implementations.disabled` preference has been removed (Firefox bug [1788223](https://bugzil.la/1788223)). +- All values of the [`mathvariant`](/en-US/docs/Web/MathML/Reference/Element/mi#mathvariant) attribute other than `normal` are now deprecated. Additionally, the attribute's use is now limited to the `` element (Firefox bug [1845461](https://bugzil.la/1845461)). ### APIs diff --git a/files/en-us/mozilla/firefox/releases/12/index.md b/files/en-us/mozilla/firefox/releases/12/index.md index b94b2e7c7a1762a..736f2196396c79e 100644 --- a/files/en-us/mozilla/firefox/releases/12/index.md +++ b/files/en-us/mozilla/firefox/releases/12/index.md @@ -53,7 +53,7 @@ Firefox 12 was shipped on April 24, 2012. This page summarizes the changes in Fi ### MathML -- To control the directionality of MathML formulas, the `dir` attribute is now supported on the {{MathMLElement("math")}}, {{MathMLElement("mrow")}}, and {{MathMLElement("mstyle")}} elements as well as on [MathML Token Elements](/en-US/docs/Web/MathML/Element#token_elements). This is particularly important for some [Arabic mathematical notations](https://www.w3.org/TR/arabic-math/). +- To control the directionality of MathML formulas, the `dir` attribute is now supported on the {{MathMLElement("math")}}, {{MathMLElement("mrow")}}, and {{MathMLElement("mstyle")}} elements as well as on [MathML Token Elements](/en-US/docs/Web/MathML/Reference/Element#token_elements). This is particularly important for some [Arabic mathematical notations](https://www.w3.org/TR/arabic-math/). - The alignment attribute `align` defined in MathML3 has been implemented for {{MathMLElement("munder")}}, {{MathMLElement("mover")}}, and {{MathMLElement("munderover")}}. ### Networking diff --git a/files/en-us/mozilla/firefox/releases/15/index.md b/files/en-us/mozilla/firefox/releases/15/index.md index 40ac165bb5569a9..adb7b1f56b5fb0c 100644 --- a/files/en-us/mozilla/firefox/releases/15/index.md +++ b/files/en-us/mozilla/firefox/releases/15/index.md @@ -59,7 +59,7 @@ Firefox 15 shipped on August 28, 2012. This article lists key changes that are u - Mathematical operators can now use downloadable fonts specified with {{cssxref("@font-face")}}. This makes the [MathML-fonts add-on](https://addons.mozilla.org/en-US/firefox/addon/mathml-fonts/) work with stretchy operators too. - The `selection` attribute of the {{MathMLElement("maction")}} is now only taken into account with the `toggle` actiontype. - [Deprecated namedspace binding](https://www.w3.org/TR/MathML3/chapter3.html#id.3.3.4.2.1) has been removed ([Firefox bug 673759](https://bugzil.la/673759)). -- Supported syntax for [Length](/en-US/docs/Web/MathML/Values) and {{MathMLElement("mpadded")}} values have been made closer to the one specified in MathML3 spec. +- Supported syntax for [Length](/en-US/docs/Web/MathML/Reference/Values) and {{MathMLElement("mpadded")}} values have been made closer to the one specified in MathML3 spec. - New MathML mirrorable operators for Arabic math have been added to the operator dictionary ([Firefox bug 757125](https://bugzil.la/757125)). ### SVG diff --git a/files/en-us/mozilla/firefox/releases/24/index.md b/files/en-us/mozilla/firefox/releases/24/index.md index d9ec72d8aa25f67..61f4cbaa45a3300 100644 --- a/files/en-us/mozilla/firefox/releases/24/index.md +++ b/files/en-us/mozilla/firefox/releases/24/index.md @@ -46,7 +46,7 @@ page-type: firefox-release-notes ### MathML - The `dir` attribute for controlling directionality of formulas on e.g. {{MathMLElement("math")}} or {{MathMLElement("mrow")}} elements is now equivalent to using the {{cssxref("direction")}} CSS property. -- The equal sign ("=") is now [stretchable](/en-US/docs/Web/MathML/Element/mo#stretchy). +- The equal sign ("=") is now [stretchable](/en-US/docs/Web/MathML/Reference/Element/mo#stretchy). - The "`updiagonalarrow`" value for the `notation` attribute on {{MathMLElement("menclose")}} elements has been added. ## Changes for add-on and Mozilla developers diff --git a/files/en-us/mozilla/firefox/releases/7/index.md b/files/en-us/mozilla/firefox/releases/7/index.md index e9086ddc206246a..ce2ac41343750fe 100644 --- a/files/en-us/mozilla/firefox/releases/7/index.md +++ b/files/en-us/mozilla/firefox/releases/7/index.md @@ -45,7 +45,7 @@ Firefox 7 shipped on September 27, 2011. This article provides information about - The top-level {{ MathMLElement("math") }} element now accepts any attributes of the {{ MathMLElement("mstyle") }} element. - Support for [Asana Math](https://www.ctan.org/tex-archive/fonts/Asana-Math/) fonts has been added. - The `medium` line thickness of fraction bars in {{ MathMLElement("mfrac") }} elements has been corrected to match the default thickness. -- [Names for negative spaces]() are now supported. +- [Names for negative spaces]() are now supported. ### DOM diff --git a/files/en-us/mozilla/firefox/releases/71/index.md b/files/en-us/mozilla/firefox/releases/71/index.md index b19a7760262e681..e785e98e370e1fd 100644 --- a/files/en-us/mozilla/firefox/releases/71/index.md +++ b/files/en-us/mozilla/firefox/releases/71/index.md @@ -59,7 +59,7 @@ This article provides information about the changes in Firefox 71 that will affe ### MathML -- [MathML elements](/en-US/docs/Web/MathML/Element) now implement a MathML DOM and their class is {{domxref("MathMLElement")}}. With a proper MathML DOM, you can now use `mathmlEl.style`, or global event handlers, for example. Prior to this change, MathML elements only implemented the {{domxref("Element")}} class ([Firefox bug 1571487](https://bugzil.la/1571487)). +- [MathML elements](/en-US/docs/Web/MathML/Reference/Element) now implement a MathML DOM and their class is {{domxref("MathMLElement")}}. With a proper MathML DOM, you can now use `mathmlEl.style`, or global event handlers, for example. Prior to this change, MathML elements only implemented the {{domxref("Element")}} class ([Firefox bug 1571487](https://bugzil.la/1571487)). ### APIs diff --git a/files/en-us/mozilla/firefox/releases/83/index.md b/files/en-us/mozilla/firefox/releases/83/index.md index be401a4419bce3e..e3610988ed7c3f3 100644 --- a/files/en-us/mozilla/firefox/releases/83/index.md +++ b/files/en-us/mozilla/firefox/releases/83/index.md @@ -21,7 +21,7 @@ This article provides information about the changes in Firefox 83 that will affe ### HTML/XML - The `crossorigin` attribute is now supported for `` ([Firefox bug 1661075](https://bugzil.la/1661075)). -- The `displaystyle` [attribute](/en-US/docs/Web/MathML/Attribute) is now implemented for all MathML elements ([Firefox bug 1666075](https://bugzil.la/1666075)). +- The `displaystyle` [attribute](/en-US/docs/Web/MathML/Reference/Attribute) is now implemented for all MathML elements ([Firefox bug 1666075](https://bugzil.la/1666075)). ### CSS diff --git a/files/en-us/web/accessibility/aria/reference/roles/math_role/index.md b/files/en-us/web/accessibility/aria/reference/roles/math_role/index.md index cd29d5001bdc198..1d104ed64f22323 100644 --- a/files/en-us/web/accessibility/aria/reference/roles/math_role/index.md +++ b/files/en-us/web/accessibility/aria/reference/roles/math_role/index.md @@ -45,5 +45,5 @@ Had an image been used, the `alt` attribute would be used along with the `math` ## See also -- [MathML on MDN](/en-US/docs/Web/MathML) and the [``](/en-US/docs/Web/MathML/Element/math) element (not HTML) +- [MathML on MDN](/en-US/docs/Web/MathML) and the [``](/en-US/docs/Web/MathML/Reference/Element/math) element (not HTML) - [The MathML specification](https://www.w3.org/TR/MathML3/) diff --git a/files/en-us/web/css/@namespace/index.md b/files/en-us/web/css/@namespace/index.md index fab60845a220e68..9e64768cc80c2d6 100644 --- a/files/en-us/web/css/@namespace/index.md +++ b/files/en-us/web/css/@namespace/index.md @@ -61,7 +61,7 @@ Any `@namespace` rules must follow all {{cssxref("@charset")}} and {{cssxref("@i The `@namespace` rule can also be used to define a **namespace prefix**. When a universal, type, or attribute selector is prefixed with a namespace prefix, then that selector only matches if the namespace _and_ name of the element or attribute matches. -In HTML, known [foreign elements](https://html.spec.whatwg.org/multipage/syntax.html#foreign-elements) will automatically be assigned namespaces. This means that HTML elements will act as though they are in the XHTML namespace (`http://www.w3.org/1999/xhtml`), even if there is no `xmlns` attribute anywhere in the document, and the [``](/en-US/docs/Web/SVG/Element/svg) and [``](/en-US/docs/Web/MathML/Element/math) elements will be assigned their proper namespaces (`http://www.w3.org/2000/svg` and `http://www.w3.org/1998/Math/MathML`, respectively). +In HTML, known [foreign elements](https://html.spec.whatwg.org/multipage/syntax.html#foreign-elements) will automatically be assigned namespaces. This means that HTML elements will act as though they are in the XHTML namespace (`http://www.w3.org/1999/xhtml`), even if there is no `xmlns` attribute anywhere in the document, and the [``](/en-US/docs/Web/SVG/Element/svg) and [``](/en-US/docs/Web/MathML/Reference/Element/math) elements will be assigned their proper namespaces (`http://www.w3.org/2000/svg` and `http://www.w3.org/1998/Math/MathML`, respectively). > [!NOTE] > In XML, unless a prefix is defined directly on an attribute (_e.g._, `xlink:href`), that attribute has no namespace. In other words, attributes do not inherit the namespace of the element they're on. To match this behavior, the default namespace in CSS does not apply to attribute selectors. diff --git a/files/en-us/web/html/element/sub/index.md b/files/en-us/web/html/element/sub/index.md index b4fe80b1daa7587..c70744a97ff70c5 100644 --- a/files/en-us/web/html/element/sub/index.md +++ b/files/en-us/web/html/element/sub/index.md @@ -164,5 +164,5 @@ Another example: ## See also - The {{HTMLElement("sup")}} HTML element that produces superscript. Note that you cannot use `sup` and `sub` both at the same time: you need to use [MathML](/en-US/docs/Web/MathML) to produce both a superscript directly above a subscript next to the chemical symbol of an element, representing its atomic number and its nuclear number. -- The [``](/en-US/docs/Web/MathML/Element/msub), [``](/en-US/docs/Web/MathML/Element/msup), and [``](/en-US/docs/Web/MathML/Element/msubsup) MathML elements. +- The [``](/en-US/docs/Web/MathML/Reference/Element/msub), [``](/en-US/docs/Web/MathML/Reference/Element/msup), and [``](/en-US/docs/Web/MathML/Reference/Element/msubsup) MathML elements. - The CSS {{cssxref("vertical-align")}} property. diff --git a/files/en-us/web/html/element/sup/index.md b/files/en-us/web/html/element/sup/index.md index 43389b01331fc1c..b87d59b4410be65 100644 --- a/files/en-us/web/html/element/sup/index.md +++ b/files/en-us/web/html/element/sup/index.md @@ -163,5 +163,5 @@ Ordinal numbers, such as "fourth" in English or "quinto" in Spanish may be abbre ## See also - The {{HTMLElement("sub")}} HTML element that produces subscripts. Note that you cannot use `sub` and `sup` at the same time: you need to use [MathML](/en-US/docs/Web/MathML) to produce both a superscript and a subscript next to the chemical symbol of an element, representing its atomic number and its nuclear number. -- The [``](/en-US/docs/Web/MathML/Element/msub), [``](/en-US/docs/Web/MathML/Element/msup), and [``](/en-US/docs/Web/MathML/Element/msubsup) MathML elements. +- The [``](/en-US/docs/Web/MathML/Reference/Element/msub), [``](/en-US/docs/Web/MathML/Reference/Element/msup), and [``](/en-US/docs/Web/MathML/Reference/Element/msubsup) MathML elements. - The CSS {{cssxref("vertical-align")}} property. diff --git a/files/en-us/web/mathml/examples/index.md b/files/en-us/web/mathml/examples/index.md deleted file mode 100644 index e74aeccb99316fd..000000000000000 --- a/files/en-us/web/mathml/examples/index.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: Examples -slug: Web/MathML/Examples -page-type: landing-page ---- - -{{MathMLRef}} - -Below you'll find some examples you can look at to help you to understand how to use MathML. - -## MathML formulas - -The following demos display increasingly complex mathematical concepts in Web content. - -- [Pythagorean Theorem](/en-US/docs/Web/MathML/Examples/MathML_Pythagorean_Theorem) - - : Small example showing a proof of the Pythagorean Theorem. -- [Deriving the Quadratic Formula](/en-US/docs/Web/MathML/Examples/Deriving_the_Quadratic_Formula) - - : Outlines the derivation of the Quadratic Formula. -- [Mozilla MathML Test](https://fred-wang.github.io/MathFonts/mozilla_mathml_test/) - - : Original test from the Mozilla MathML project. It contains examples from the [TeXbook](https://en.wikipedia.org/wiki/Computers_and_Typesetting) with image references generated by TeX. -- [MathML Browser Test](http://eyeasme.com/Joe/MathML/MathML_browser_test.html) - - : A similar test with concrete formulas taken from Wikipedia. - -## Other Web technologies - -The following demos mix MathML with other Web technologies to produce advanced content. - -- [`` custom element](https://fred-wang.github.io/TeXZilla/examples/customElement.html) - - : A [custom element](/en-US/docs/Web/API/Web_components/Using_custom_elements) that accepts [LaTeX](https://en.wikipedia.org/wiki/LaTeX) content. -- [Magnetic field demo](https://fred-wang.github.io/TeXZilla/examples/toImageWebGL.html) - - : A 3D representation of a magnetic field, using [SVG](/en-US/docs/Web/SVG) and [WebGL](/en-US/docs/Web/API/WebGL_API). -- [Συνάρτηση ζήτα Ρήμαν (el)](https://fred-wang.github.io/MathFonts/%CE%A3%CF%85%CE%BD%CE%AC%CF%81%CF%84%CE%B7%CF%83%CE%B7_%CE%B6%CE%AE%CF%84%CE%B1_%CE%A1%CE%AE%CE%BC%CE%B1%CE%BD.html) - - : A greek article about the Riemann zeta function, with [Web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts) from the [Greek Font Society](https://greekfontsociety-gfs.gr/). -- [Pell's equation](https://people.igalia.com/fwang/pell-bigint-mathml/) - - : A JavaScript program to solve Pell's equation using [`BigInt`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt). -- [Lovelace's program for Bernoulli numbers](https://people.igalia.com/fwang/lovelace-jsclass-mathml/) - - : An emulator for Ada Lovelace's program to calculate Bernoulli numbers, using [Private properties](/en-US/docs/Web/JavaScript/Reference/Classes/Private_properties). diff --git a/files/en-us/web/mathml/authoring/index.md b/files/en-us/web/mathml/guides/authoring/index.md similarity index 91% rename from files/en-us/web/mathml/authoring/index.md rename to files/en-us/web/mathml/guides/authoring/index.md index 9afe10504b4cd49..4712378e01be4b8 100644 --- a/files/en-us/web/mathml/authoring/index.md +++ b/files/en-us/web/mathml/guides/authoring/index.md @@ -1,11 +1,11 @@ --- title: Authoring MathML -slug: Web/MathML/Authoring +short-title: Authoring +slug: Web/MathML/Guides/Authoring page-type: guide +sidebar: mathmlref --- -{{MathMLRef}} - This page explains how to write mathematics using the MathML language, which is described with tags and attributes in text format. Just like for HTML or SVG, this text can become very verbose for complex content and so requires [proper authoring tools](https://www.w3.org/wiki/Math_Tools#Authoring_tools) such as converters from a [lightweight markup language](https://en.wikipedia.org/wiki/Lightweight_markup_language) or [WYSIWYG](https://en.wikipedia.org/wiki/WYSIWYG) equation editors. Many such tools are available and it is impossible to provide an exhaustive list. Instead, this article focuses on common approaches and examples. ## Using MathML @@ -14,7 +14,7 @@ Even if your MathML formulas will likely be generated by authoring tools, it is ### MathML in HTML pages -Each MathML equation is represented by a root [`math`](/en-US/docs/Web/MathML/Element/math) element, which can be embedded directly in HTML pages. By default, the formula will be rendered inline, with extra adjustments to minimize its height. Use a `display="block"` attribute to render complex formulas normally, and in their own paragraph. +Each MathML equation is represented by a root [`math`](/en-US/docs/Web/MathML/Reference/Element/math) element, which can be embedded directly in HTML pages. By default, the formula will be rendered inline, with extra adjustments to minimize its height. Use a `display="block"` attribute to render complex formulas normally, and in their own paragraph. ```html @@ -81,10 +81,11 @@ Alternatively, you can also just display a warning at the top of the page for br > [!NOTE] > These small scripts perform feature detection (of the [mspace](/en-US/docs/Web/MathML/Element/mspace) or [mpadded](/en-US/docs/Web/MathML/Element/mpadded) elements) which is preferred over [browser sniffing](/en-US/docs/Web/HTTP/Guides/Browser_detection_using_the_user_agent). Also, they are distributed under an open source license, so feel free to copy them on your own server and adapt them to your need. +> These small scripts perform feature detection (of the [mspace](/en-US/docs/Web/MathML/Reference/Element/mspace) or [mpadded](/en-US/docs/Web/MathML/Reference/Element/mpadded) elements) which is preferred over [browser sniffing](/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent). Also, they are distributed under an open source license, so feel free to copy them on your own server and adapt them to your need. #### Mathematical fonts -As explained on the [MathML Fonts](/en-US/docs/Web/MathML/Fonts) article, mathematical fonts are instrumental to render MathML content. It's thus always a good idea to share the [installation instructions for such fonts](/en-US/docs/Web/MathML/Fonts#installation_instructions) or to provide them as [Web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts). +As explained on the [MathML Fonts](/en-US/docs/Web/MathML/Guides/Fonts) article, mathematical fonts are instrumental to render MathML content. It's thus always a good idea to share the [installation instructions for such fonts](/en-US/docs/Web/MathML/Guides/Fonts#installation_instructions) or to provide them as [Web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts). The [MathFonts page](https://fred-wang.github.io/MathFonts/) provides such Web fonts together with proper style sheets. For example, just insert the following line in your document header in order to select the Latin Modern fonts with fallback Web fonts: diff --git a/files/en-us/web/mathml/authoring/libreoffice.png b/files/en-us/web/mathml/guides/authoring/libreoffice.png similarity index 100% rename from files/en-us/web/mathml/authoring/libreoffice.png rename to files/en-us/web/mathml/guides/authoring/libreoffice.png diff --git a/files/en-us/web/mathml/authoring/lyx.png b/files/en-us/web/mathml/guides/authoring/lyx.png similarity index 100% rename from files/en-us/web/mathml/authoring/lyx.png rename to files/en-us/web/mathml/guides/authoring/lyx.png diff --git a/files/en-us/web/mathml/authoring/myscript.png b/files/en-us/web/mathml/guides/authoring/myscript.png similarity index 100% rename from files/en-us/web/mathml/authoring/myscript.png rename to files/en-us/web/mathml/guides/authoring/myscript.png diff --git a/files/en-us/web/mathml/authoring/texmacs.png b/files/en-us/web/mathml/guides/authoring/texmacs.png similarity index 100% rename from files/en-us/web/mathml/authoring/texmacs.png rename to files/en-us/web/mathml/guides/authoring/texmacs.png diff --git a/files/en-us/web/mathml/authoring/thunderbird.png b/files/en-us/web/mathml/guides/authoring/thunderbird.png similarity index 100% rename from files/en-us/web/mathml/authoring/thunderbird.png rename to files/en-us/web/mathml/guides/authoring/thunderbird.png diff --git a/files/en-us/web/mathml/examples/deriving_the_quadratic_formula/index.md b/files/en-us/web/mathml/guides/deriving_the_quadratic_formula/index.md similarity index 98% rename from files/en-us/web/mathml/examples/deriving_the_quadratic_formula/index.md rename to files/en-us/web/mathml/guides/deriving_the_quadratic_formula/index.md index 8f527cfca9ceed7..7cf258112f070a5 100644 --- a/files/en-us/web/mathml/examples/deriving_the_quadratic_formula/index.md +++ b/files/en-us/web/mathml/guides/deriving_the_quadratic_formula/index.md @@ -1,11 +1,11 @@ --- -title: Deriving the Quadratic Formula -slug: Web/MathML/Examples/Deriving_the_Quadratic_Formula +title: Deriving the quadratic formula +short-title: Quadratic formula +slug: Web/MathML/Guides/Deriving_the_quadratic_formula page-type: guide +sidebar: mathmlref --- -{{MathMLRef}} - This page outlines the derivation of the [Quadratic Formula](https://en.wikipedia.org/wiki/Quadratic_formula). Nine equations are organized in the {{MathMLElement("mtable")}} element to align the steps of the derivation by the equal sign. Some steps are annotated with colored text. The derivation is also represented in [LaTeX](https://www.latex-project.org/) format in the {{MathMLElement("annotation")}} element. ## Derivation diff --git a/files/en-us/web/mathml/fonts/index.md b/files/en-us/web/mathml/guides/fonts/index.md similarity index 99% rename from files/en-us/web/mathml/fonts/index.md rename to files/en-us/web/mathml/guides/fonts/index.md index c4f3f00c3b638e7..2509d55f17d5584 100644 --- a/files/en-us/web/mathml/fonts/index.md +++ b/files/en-us/web/mathml/guides/fonts/index.md @@ -1,11 +1,11 @@ --- title: Fonts for MathML -slug: Web/MathML/Fonts +short-title: Fonts +slug: Web/MathML/Guides/Fonts page-type: guide +sidebar: mathmlref --- -{{MathMLRef}} - Fonts with appropriate Unicode coverage and Open Font Format features are required for good math rendering. This page describes how users can install such math fonts to properly display MathML in browsers. diff --git a/files/en-us/web/mathml/guides/index.md b/files/en-us/web/mathml/guides/index.md index fe9b501419e5581..f7cd28c0c22d171 100644 --- a/files/en-us/web/mathml/guides/index.md +++ b/files/en-us/web/mathml/guides/index.md @@ -1,27 +1,19 @@ --- -title: MathML beginner's guides +title: MathML guides +short-title: Guides slug: Web/MathML/Guides -page-type: landing-page +page-type: listing-page +sidebar: mathmlref --- -{{MathMLRef}} +This page lists guides for MathML. -The following guides provide a gentle beginning to your path towards MathML mastery with the basics of how it works, what the syntax looks like, and how you can start using it inside HTML. +- [Authoring MathML](/en-US/docs/Web/MathML/Guides/Authoring) + - : This page explains how to write mathematics using the MathML language, which is described with tags and attributes in text format. +- [Fonts for MathML](/en-US/docs/Web/MathML/Guides/Fonts) + - : Fonts with appropriate Unicode coverage and Open Font Format features are required for good math rendering. This page describes how users can install such math fonts to properly display MathML in browsers. -## Guides +## See also -- [Getting started with MathML](/en-US/docs/Web/MathML/Guides/Getting_started) - - : In this article, we will take a simple HTML document and see how to add MathML formulas into it, introducing a few elements along the way. -- [Text containers](/en-US/docs/Web/MathML/Guides/Text_containers) - - : Now that you get a better idea of MathML, we move on to text containers (variables, numbers, operators, ...) which are used as building blocks of MathML formulas. -- [Fractions and roots](/en-US/docs/Web/MathML/Guides/Fractions_and_roots) - - : Relying on text containers, this article describes how to build more complex MathML expressions by nesting fractions and roots. -- [Scripts](/en-US/docs/Web/MathML/Guides/Scripts) - - : We continue the review of basic math notations and focuses on building MathML elements with scripts. -- [Tables](/en-US/docs/Web/MathML/Guides/Tables) - - : Once all basic math notations are known, it remains to consider tabular layout which can be used for matrix-like expressions and other advanced math layout. - -## Challenges - -- [Three famous mathematical formulas](/en-US/docs/Web/MathML/Guides/Three_famous_mathematical_formulas) - - : With the things you have learned in the last few articles, you should already be able to write relatively sophisticated MathML formulas. This challenge gives you a chance to do that. +- [MathML tutorials](/en-US/docs/Web/MathML/Tutorials) +- [MathML reference](/en-US/docs/Web/MathML/Reference) diff --git a/files/en-us/web/mathml/examples/mathml_pythagorean_theorem/index.md b/files/en-us/web/mathml/guides/proving_the_pythagorean_theorem/index.md similarity index 96% rename from files/en-us/web/mathml/examples/mathml_pythagorean_theorem/index.md rename to files/en-us/web/mathml/guides/proving_the_pythagorean_theorem/index.md index 560aaf029276c91..3f99c9a515722ed 100644 --- a/files/en-us/web/mathml/examples/mathml_pythagorean_theorem/index.md +++ b/files/en-us/web/mathml/guides/proving_the_pythagorean_theorem/index.md @@ -1,11 +1,11 @@ --- title: Proving the Pythagorean theorem -slug: Web/MathML/Examples/MathML_Pythagorean_Theorem +short-title: Pythagorean theorem +slug: Web/MathML/Guides/Proving_the_Pythagorean_theorem page-type: guide +sidebar: mathmlref --- -{{MathMLRef}} - This page outlines the proof of the [Pythagorean theorem](https://en.wikipedia.org/wiki/Pythagorean_theorem). Three equations are organized in the {{MathMLElement("mtable")}} element to align the steps of the proof by the equal sign. The proof is also represented in [LaTeX](https://www.latex-project.org/) format in the {{MathMLElement("annotation")}} element. ## Proof diff --git a/files/en-us/web/mathml/index.md b/files/en-us/web/mathml/index.md index 4a3d02886fa7b89..394890c28cbe7ad 100644 --- a/files/en-us/web/mathml/index.md +++ b/files/en-us/web/mathml/index.md @@ -3,10 +3,9 @@ title: MathML slug: Web/MathML page-type: landing-page browser-compat: mathml.elements.math +sidebar: mathmlref --- -{{MathMLRef}} - **Mathematical Markup Language (MathML)** is an [XML](/en-US/docs/Web/XML)-based language for describing mathematical notation. [MathML](https://w3c.github.io/mathml/) was originally designed as a general-purpose specification for browsers, office suites, [computer algebra systems](https://en.wikipedia.org/wiki/Computer_algebra_system), [EPUB](https://www.w3.org/publishing/epub33/) readers, [LaTeX](https://en.wikipedia.org/wiki/LaTeX)-based generators. However, this approach was not very adapted to the Web: the [subset focusing on semantics](https://w3c.github.io/mathml/#contm) has never been implemented in browsers while the [subset focusing on math layout](https://w3c.github.io/mathml/#presm) led to incomplete and inconsistent browser implementations. @@ -18,38 +17,60 @@ Below you will find links to documentation, examples, and tools to work with Mat > [!NOTE] > It is highly recommended that developers and authors switch to MathML Core, perhaps relying on other web technologies to cover missing use cases. The Math WG is maintaining a set of [MathML polyfills](https://github.com/w3c/mathml-polyfills) to facilitate that transition. -## Beginner's tutorials - -- [Getting started with MathML](/en-US/docs/Web/MathML/Guides/Getting_started) - - : In this article, we will take a simple HTML document and see how to add MathML formulas into it, introducing a few elements along the way. -- [Text containers](/en-US/docs/Web/MathML/Guides/Text_containers) - - : Now that you get a better idea of MathML, we move on to text containers (variables, numbers, operators, ...) which are used as building blocks of MathML formulas. -- [Fractions and roots](/en-US/docs/Web/MathML/Guides/Fractions_and_roots) - - : Relying on text containers, this article describes how to build more complex MathML expressions by nesting fractions and roots. -- [Scripts](/en-US/docs/Web/MathML/Guides/Scripts) - - : We continue the review of basic math notations and focuses on building MathML elements with scripts. -- [Tables](/en-US/docs/Web/MathML/Guides/Tables) - - : Once all basic math notations are known, it remains to consider tabular layout which can be used for matrix-like expressions and other advanced math layout. -- [Three famous mathematical formulas](/en-US/docs/Web/MathML/Guides/Three_famous_mathematical_formulas) Challenge - - : With the things you have learned in the last few articles, you should already be able to write relatively sophisticated MathML formulas. This challenge gives you a chance to do that. +## Tutorials + +- [MathML for beginners](/en-US/docs/Web/MathML/Tutorials/For_beginners) + - : This tutorial will guide you through creating math formulas using structured markup. It starts with an introduction to adding MathML to an HTML document, followed by a deep dive into key components: fractions and roots, scripted elements, and text containers. The tutorial then covers tabular layouts for matrices and advanced math formatting. Finally, a challenge tests your understanding by having you recreate three famous mathematical formulas using the learned concepts. ## Guides -- [Authoring MathML](/en-US/docs/Web/MathML/Authoring) +- [Authoring MathML](/en-US/docs/Web/MathML/Guides/Authoring) - : Suggestions and tips for writing MathML, including suggested MathML editors and how to integrate their output into Web content. -- [Fonts for MathML](/en-US/docs/Web/MathML/Fonts) +- [Fonts for MathML](/en-US/docs/Web/MathML/Guides/Fonts) - : How users can install such math fonts to properly display MathML in browsers. -## MathML reference +## Reference -- [MathML element reference](/en-US/docs/Web/MathML/Element) +- [MathML element reference](/en-US/docs/Web/MathML/Reference/Element) - : Details about each MathML element and compatibility information for desktop and mobile browsers. -- [MathML attribute reference](/en-US/docs/Web/MathML/Attribute) +- [MathML global attribute reference](/en-US/docs/Web/MathML/Reference/Global_attributes) + - : Information about global MathML attributes applicable to all elements. +- [MathML attribute reference](/en-US/docs/Web/MathML/Reference/Attribute) - : Information about MathML attributes that modify the appearance or behavior of elements. -- [MathML attribute values](/en-US/docs/Web/MathML/Attribute) +- [MathML attribute values](/en-US/docs/Web/MathML/Reference/Values) - : Further information about MathML attribute values. -- [MathML examples](/en-US/docs/Web/MathML/Examples) - - : MathML samples and examples to help you understand how it works. + +## Examples + +Below you'll find some examples you can look at to help you to understand how to use MathML. + +### MathML formulas + +The following demos display increasingly complex mathematical concepts in Web content. + +- [Proving the Pythagorean theorem](/en-US/docs/Web/MathML/Guides/Proving_the_Pythagorean_theorem) + - : Small example showing a proof of the Pythagorean Theorem. +- [Deriving the quadratic formula](/en-US/docs/Web/MathML/Guides/Deriving_the_quadratic_formula) + - : Outlines the derivation of the Quadratic Formula. +- [Mozilla MathML test](https://fred-wang.github.io/MathFonts/mozilla_mathml_test/) + - : Original test from the Mozilla MathML project. It contains examples from the [TeXbook](https://en.wikipedia.org/wiki/Computers_and_Typesetting) with image references generated by TeX. +- [MathML browser test](http://eyeasme.com/Joe/MathML/MathML_browser_test.html) + - : A similar test with concrete formulas taken from Wikipedia. + +### Other Web technologies + +The following demos mix MathML with other Web technologies to produce advanced content. + +- [`` custom element](https://fred-wang.github.io/TeXZilla/examples/customElement.html) + - : A [custom element](/en-US/docs/Web/API/Web_components/Using_custom_elements) that accepts [LaTeX](https://en.wikipedia.org/wiki/LaTeX) content. +- [Magnetic field demo](https://fred-wang.github.io/TeXZilla/examples/toImageWebGL.html) + - : A 3D representation of a magnetic field, using [SVG](/en-US/docs/Web/SVG) and [WebGL](/en-US/docs/Web/API/WebGL_API). +- [Συνάρτηση ζήτα Ρήμαν (el)](https://fred-wang.github.io/MathFonts/%CE%A3%CF%85%CE%BD%CE%AC%CF%81%CF%84%CE%B7%CF%83%CE%B7_%CE%B6%CE%AE%CF%84%CE%B1_%CE%A1%CE%AE%CE%BC%CE%B1%CE%BD.html) + - : A greek article about the Riemann zeta function, with [Web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts) from the [Greek Font Society](https://greekfontsociety-gfs.gr/). +- [Pell's equation](https://people.igalia.com/fwang/pell-bigint-mathml/) + - : A JavaScript program to solve Pell's equation using [`BigInt`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt). +- [Lovelace's program for Bernoulli numbers](https://people.igalia.com/fwang/lovelace-jsclass-mathml/) + - : An emulator for Ada Lovelace's program to calculate Bernoulli numbers, using [Private properties](/en-US/docs/Web/JavaScript/Reference/Classes/Private_properties). ## Getting help from the community diff --git a/files/en-us/web/mathml/attribute/index.md b/files/en-us/web/mathml/reference/attribute/index.md similarity index 81% rename from files/en-us/web/mathml/attribute/index.md rename to files/en-us/web/mathml/reference/attribute/index.md index e247904d1b8ce43..2d735daaa248c9f 100644 --- a/files/en-us/web/mathml/attribute/index.md +++ b/files/en-us/web/mathml/reference/attribute/index.md @@ -1,12 +1,12 @@ --- -title: Attributes -slug: Web/MathML/Attribute +title: MathML attributes +short-title: Attributes +slug: Web/MathML/Reference/Attribute page-type: landing-page +sidebar: mathmlref --- -{{MathMLRef}} - -This is an alphabetical list of MathML attributes. More details for each attribute are available on relevant [MathML element pages](/en-US/docs/Web/MathML/Element) and on the [global attributes page](/en-US/docs/Web/MathML/Global_attributes). The [values](/en-US/docs/Web/MathML/Values) page also describes some notes on common values used by MathML attributes. +This is an alphabetical list of MathML attributes. More details for each attribute are available on relevant [MathML element pages](/en-US/docs/Web/MathML/Reference/Element) and on the [global attributes page](/en-US/docs/Web/MathML/Reference/Global_attributes). The [values](/en-US/docs/Web/MathML/Reference/Values) page also describes some notes on common values used by MathML attributes. > [!NOTE] > As explained on the main [MathML](/en-US/docs/Web/MathML) page, MDN uses [MathML Core](https://w3c.github.io/mathml-core/) as a reference specification. However, legacy features that are still implemented by some browsers are also documented. You can find further details for these and other features in [MathML 4](https://w3c.github.io/mathml/). @@ -26,7 +26,7 @@ This is an alphabetical list of MathML attributes. More details for each attribu {{ MathMLElement("mo") }} - A <boolean> indicating whether the operator should be treated as an accent when used as an under- or over-script. + A <boolean> indicating whether the operator should be treated as an accent when used as an under- or over-script. @@ -36,7 +36,7 @@ This is an alphabetical list of MathML attributes. More details for each attribu {{ MathMLElement("munderover") }} - A <boolean> indicating whether the under script should be treated as an accent. + A <boolean> indicating whether the under script should be treated as an accent. @@ -46,7 +46,7 @@ This is an alphabetical list of MathML attributes. More details for each attribu {{ MathMLElement("munderover") }} - A <boolean> indicating whether the over script should be treated as an accent. + A <boolean> indicating whether the over script should be treated as an accent. @@ -124,7 +124,7 @@ This is an alphabetical list of MathML attributes. More details for each attribu dir - All MathML elements + All MathML elements The text direction. Possible values are either ltr (left to right) or @@ -141,10 +141,10 @@ This is an alphabetical list of MathML attributes. More details for each attribu displaystyle - All MathML elements + All MathML elements

- A <boolean> specifying whether to set the + A <boolean> specifying whether to set the math-style to normal (if true) or compact (otherwise).

@@ -154,7 +154,7 @@ This is an alphabetical list of MathML attributes. More details for each attribu fence {{ MathMLElement("mo") }} - A <boolean> specifying whether the operator is a fence (such as + A <boolean> specifying whether the operator is a fence (such as parentheses). There is no visual effect for this attribute. @@ -215,12 +215,12 @@ This is an alphabetical list of MathML attributes. More details for each attribu href - All MathML elements + All MathML elements Used to set a hyperlink to a specified URI. id - All MathML elements + All MathML elements Sets up a unique identifier associated with the element. @@ -255,28 +255,28 @@ This is an alphabetical list of MathML attributes. More details for each attribu mathbackground - All MathML elements + All MathML elements A background-color for the element. mathcolor - All MathML elements + All MathML elements A color for the element. mathsize - All MathML elements + All MathML elements A {{cssxref("length-percentage")}} used as a font-size for the element. mathvariant - All MathML elements + All MathML elements The logical class of token elements, which varies in typography. @@ -293,7 +293,7 @@ This is an alphabetical list of MathML attributes. More details for each attribu movablelimits {{ MathMLElement("mo") }} - A <boolean> indicating whether attached under- and overscripts move to sub- and superscript positions when math-style is set to compact. + A <boolean> indicating whether attached under- and overscripts move to sub- and superscript positions when math-style is set to compact. @@ -355,9 +355,9 @@ This is an alphabetical list of MathML attributes. More details for each attribu scriptlevel - All MathML elements + All MathML elements - Specifies a math-depth for the element. See the scriptlevel page for accepted values and mapping. + Specifies a math-depth for the element. See the scriptlevel page for accepted values and mapping. @@ -385,7 +385,7 @@ This is an alphabetical list of MathML attributes. More details for each attribu separator {{ MathMLElement("mo") }} - A <boolean> specifying whether + A <boolean> specifying whether the operator is a separator (such as commas). There is no visual effect for this attribute. @@ -402,7 +402,7 @@ This is an alphabetical list of MathML attributes. More details for each attribu stretchy {{ MathMLElement("mo") }} - A <boolean> indicating whether the operator stretches to the size of the adjacent element. + A <boolean> indicating whether the operator stretches to the size of the adjacent element. @@ -431,7 +431,7 @@ This is an alphabetical list of MathML attributes. More details for each attribu symmetric {{ MathMLElement("mo") }} - A <boolean> indicating whether a stretchy operator should be vertically symmetric around the imaginary math axis (centered fraction line). + A <boolean> indicating whether a stretchy operator should be vertically symmetric around the imaginary math axis (centered fraction line). diff --git a/files/en-us/web/mathml/element/annotation-xml/index.md b/files/en-us/web/mathml/reference/element/annotation-xml/index.md similarity index 95% rename from files/en-us/web/mathml/element/annotation-xml/index.md rename to files/en-us/web/mathml/reference/element/annotation-xml/index.md index 505b12b41f4bcc8..240c9282ddde2a0 100644 --- a/files/en-us/web/mathml/element/annotation-xml/index.md +++ b/files/en-us/web/mathml/reference/element/annotation-xml/index.md @@ -1,12 +1,11 @@ --- title: -slug: Web/MathML/Element/annotation-xml +slug: Web/MathML/Reference/Element/annotation-xml page-type: mathml-element browser-compat: mathml.elements.annotation-xml +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element contains an annotation to the MathML expression in the {{glossary("XML")}} format, for example [Content MathML](https://en.wikipedia.org/wiki/MathML#Content_MathML) or {{glossary("SVG")}}. > [!NOTE] @@ -14,7 +13,7 @@ The **``** [MathML](/en-US/docs/Web/MathML) element contains an ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attributes: - `encoding` - : The encoding of the semantic information in the annotation (e.g. `"application/mathml+xml"`, `"application/mathml-presentation+xml"`, `"application/mathml-content+xml"`) diff --git a/files/en-us/web/mathml/element/annotation/index.md b/files/en-us/web/mathml/reference/element/annotation/index.md similarity index 91% rename from files/en-us/web/mathml/element/annotation/index.md rename to files/en-us/web/mathml/reference/element/annotation/index.md index bc9889b572c8953..59b6accfbbdd9a3 100644 --- a/files/en-us/web/mathml/element/annotation/index.md +++ b/files/en-us/web/mathml/reference/element/annotation/index.md @@ -1,12 +1,11 @@ --- title: -slug: Web/MathML/Element/annotation +slug: Web/MathML/Reference/Element/annotation page-type: mathml-element browser-compat: mathml.elements.annotation +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element contains an annotation to the MathML expression in a textual format, for example [LaTeX](https://www.latex-project.org/). > [!NOTE] @@ -14,7 +13,7 @@ The **``** [MathML](/en-US/docs/Web/MathML) element contains an anno ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attributes: - `encoding` - : The encoding of the semantic information in the annotation (e.g. `"application/x-tex"`) diff --git a/files/en-us/web/mathml/element/index.md b/files/en-us/web/mathml/reference/element/index.md similarity index 96% rename from files/en-us/web/mathml/element/index.md rename to files/en-us/web/mathml/reference/element/index.md index 9bb5167cd4d7aba..6e0a49d98bf2980 100644 --- a/files/en-us/web/mathml/element/index.md +++ b/files/en-us/web/mathml/reference/element/index.md @@ -1,11 +1,11 @@ --- -title: MathML element reference -slug: Web/MathML/Element +title: MathML elements +short-title: Elements +slug: Web/MathML/Reference/Element page-type: landing-page +sidebar: mathmlref --- -{{MathMLRef}} - This is an alphabetical list of MathML elements. All of them implement the {{domxref("MathMLElement")}} class. > [!NOTE] @@ -142,4 +142,4 @@ This is an alphabetical list of MathML elements. All of them implement the {{dom ## See also - [MathML](/en-US/docs/Web/MathML) -- [MathML attribute reference](/en-US/docs/Web/MathML/Attribute) +- [MathML attribute reference](/en-US/docs/Web/MathML/Reference/Attribute) diff --git a/files/en-us/web/mathml/element/maction/index.md b/files/en-us/web/mathml/reference/element/maction/index.md similarity index 94% rename from files/en-us/web/mathml/element/maction/index.md rename to files/en-us/web/mathml/reference/element/maction/index.md index 15cef165a2f522c..9e0fd3f03632e64 100644 --- a/files/en-us/web/mathml/element/maction/index.md +++ b/files/en-us/web/mathml/reference/element/maction/index.md @@ -1,13 +1,14 @@ --- title: -slug: Web/MathML/Element/maction +slug: Web/MathML/Reference/Element/maction page-type: mathml-element status: - deprecated browser-compat: mathml.elements.maction +sidebar: mathmlref --- -{{MathMLRef}}{{Deprecated_Header}} +{{Deprecated_Header}} The **``** [MathML](/en-US/docs/Web/MathML) element allows to bind actions to mathematical expressions. By default, only the first child is rendered but some browsers may take into account `actiontype` and `selection` attributes to implement custom behaviors. @@ -16,7 +17,7 @@ The **``** [MathML](/en-US/docs/Web/MathML) element allows to bind acti ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attributes: - `actiontype` {{Deprecated_Inline}} {{Non-standard_Inline}} diff --git a/files/en-us/web/mathml/element/maction/toggle.gif b/files/en-us/web/mathml/reference/element/maction/toggle.gif similarity index 100% rename from files/en-us/web/mathml/element/maction/toggle.gif rename to files/en-us/web/mathml/reference/element/maction/toggle.gif diff --git a/files/en-us/web/mathml/element/math/index.md b/files/en-us/web/mathml/reference/element/math/index.md similarity index 91% rename from files/en-us/web/mathml/element/math/index.md rename to files/en-us/web/mathml/reference/element/math/index.md index 5a85130f39356f5..2b9ee94666b6ecc 100644 --- a/files/en-us/web/mathml/element/math/index.md +++ b/files/en-us/web/mathml/reference/element/math/index.md @@ -1,20 +1,19 @@ --- title: -slug: Web/MathML/Element/math +slug: Web/MathML/Reference/Element/math page-type: mathml-element browser-compat: mathml.elements.math +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is the top-level MathML element, used to write a single mathematical formula. It can be placed in HTML content where [flow content](/en-US/docs/Web/HTML/Content_categories#flow_content) is permitted. > [!NOTE] -> See the [Authoring MathML page](/en-US/docs/Web/MathML/Authoring#using_mathml) for tips to properly integrate MathML formulas in your web pages and the [Examples](/en-US/docs/Web/MathML/Examples) page for more demos. +> See the [Authoring MathML page](/en-US/docs/Web/MathML/Guides/Authoring#using_mathml) for tips to properly integrate MathML formulas in your web pages and the [Guides](/en-US/docs/Web/MathML/Guides) page for more demos. ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attribute: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attribute: - `display` diff --git a/files/en-us/web/mathml/element/menclose/actuarial.svg b/files/en-us/web/mathml/reference/element/menclose/actuarial.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/actuarial.svg rename to files/en-us/web/mathml/reference/element/menclose/actuarial.svg diff --git a/files/en-us/web/mathml/element/menclose/bottom.svg b/files/en-us/web/mathml/reference/element/menclose/bottom.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/bottom.svg rename to files/en-us/web/mathml/reference/element/menclose/bottom.svg diff --git a/files/en-us/web/mathml/element/menclose/box.svg b/files/en-us/web/mathml/reference/element/menclose/box.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/box.svg rename to files/en-us/web/mathml/reference/element/menclose/box.svg diff --git a/files/en-us/web/mathml/element/menclose/circle-box.svg b/files/en-us/web/mathml/reference/element/menclose/circle-box.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/circle-box.svg rename to files/en-us/web/mathml/reference/element/menclose/circle-box.svg diff --git a/files/en-us/web/mathml/element/menclose/circle.svg b/files/en-us/web/mathml/reference/element/menclose/circle.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/circle.svg rename to files/en-us/web/mathml/reference/element/menclose/circle.svg diff --git a/files/en-us/web/mathml/element/menclose/downdiagonalstrike.svg b/files/en-us/web/mathml/reference/element/menclose/downdiagonalstrike.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/downdiagonalstrike.svg rename to files/en-us/web/mathml/reference/element/menclose/downdiagonalstrike.svg diff --git a/files/en-us/web/mathml/element/menclose/horizontalstrike.svg b/files/en-us/web/mathml/reference/element/menclose/horizontalstrike.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/horizontalstrike.svg rename to files/en-us/web/mathml/reference/element/menclose/horizontalstrike.svg diff --git a/files/en-us/web/mathml/element/menclose/index.md b/files/en-us/web/mathml/reference/element/menclose/index.md similarity index 98% rename from files/en-us/web/mathml/element/menclose/index.md rename to files/en-us/web/mathml/reference/element/menclose/index.md index 83eaa2c9cfa3320..4070e6979b8507c 100644 --- a/files/en-us/web/mathml/element/menclose/index.md +++ b/files/en-us/web/mathml/reference/element/menclose/index.md @@ -1,19 +1,20 @@ --- title: -slug: Web/MathML/Element/menclose +slug: Web/MathML/Reference/Element/menclose page-type: mathml-element status: - non-standard browser-compat: mathml.elements.menclose +sidebar: mathmlref --- -{{MathMLRef}}{{Non-standard_header}} +{{Non-standard_header}} The **``** [MathML](/en-US/docs/Web/MathML) element renders its content inside an enclosing notation specified by the `notation` attribute. ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). - `notation` {{Non-standard_Inline}} diff --git a/files/en-us/web/mathml/element/menclose/left.svg b/files/en-us/web/mathml/reference/element/menclose/left.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/left.svg rename to files/en-us/web/mathml/reference/element/menclose/left.svg diff --git a/files/en-us/web/mathml/element/menclose/longdiv.svg b/files/en-us/web/mathml/reference/element/menclose/longdiv.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/longdiv.svg rename to files/en-us/web/mathml/reference/element/menclose/longdiv.svg diff --git a/files/en-us/web/mathml/element/menclose/madruwb.svg b/files/en-us/web/mathml/reference/element/menclose/madruwb.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/madruwb.svg rename to files/en-us/web/mathml/reference/element/menclose/madruwb.svg diff --git a/files/en-us/web/mathml/element/menclose/phasorangle.svg b/files/en-us/web/mathml/reference/element/menclose/phasorangle.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/phasorangle.svg rename to files/en-us/web/mathml/reference/element/menclose/phasorangle.svg diff --git a/files/en-us/web/mathml/element/menclose/right.svg b/files/en-us/web/mathml/reference/element/menclose/right.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/right.svg rename to files/en-us/web/mathml/reference/element/menclose/right.svg diff --git a/files/en-us/web/mathml/element/menclose/roundedbox.svg b/files/en-us/web/mathml/reference/element/menclose/roundedbox.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/roundedbox.svg rename to files/en-us/web/mathml/reference/element/menclose/roundedbox.svg diff --git a/files/en-us/web/mathml/element/menclose/top.svg b/files/en-us/web/mathml/reference/element/menclose/top.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/top.svg rename to files/en-us/web/mathml/reference/element/menclose/top.svg diff --git a/files/en-us/web/mathml/element/menclose/updiagonalarrow.svg b/files/en-us/web/mathml/reference/element/menclose/updiagonalarrow.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/updiagonalarrow.svg rename to files/en-us/web/mathml/reference/element/menclose/updiagonalarrow.svg diff --git a/files/en-us/web/mathml/element/menclose/updiagonalstrike.svg b/files/en-us/web/mathml/reference/element/menclose/updiagonalstrike.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/updiagonalstrike.svg rename to files/en-us/web/mathml/reference/element/menclose/updiagonalstrike.svg diff --git a/files/en-us/web/mathml/element/menclose/verticalstrike.svg b/files/en-us/web/mathml/reference/element/menclose/verticalstrike.svg similarity index 100% rename from files/en-us/web/mathml/element/menclose/verticalstrike.svg rename to files/en-us/web/mathml/reference/element/menclose/verticalstrike.svg diff --git a/files/en-us/web/mathml/element/merror/index.md b/files/en-us/web/mathml/reference/element/merror/index.md similarity index 91% rename from files/en-us/web/mathml/element/merror/index.md rename to files/en-us/web/mathml/reference/element/merror/index.md index be8937211ba86f7..afd26d788c20fba 100644 --- a/files/en-us/web/mathml/element/merror/index.md +++ b/files/en-us/web/mathml/reference/element/merror/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/merror +slug: Web/MathML/Reference/Element/merror page-type: mathml-element browser-compat: mathml.elements.merror +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to display contents as error messages. The intent of this element is to provide a standard way for programs that generate MathML from other input to report syntax errors. ## Attributes -This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Examples diff --git a/files/en-us/web/mathml/element/mfenced/index.md b/files/en-us/web/mathml/reference/element/mfenced/index.md similarity index 94% rename from files/en-us/web/mathml/element/mfenced/index.md rename to files/en-us/web/mathml/reference/element/mfenced/index.md index bfc4dbac2292d82..f29ab9151515054 100644 --- a/files/en-us/web/mathml/element/mfenced/index.md +++ b/files/en-us/web/mathml/reference/element/mfenced/index.md @@ -1,14 +1,15 @@ --- title: -slug: Web/MathML/Element/mfenced +slug: Web/MathML/Reference/Element/mfenced page-type: mathml-element status: - deprecated - non-standard browser-compat: mathml.elements.mfenced +sidebar: mathmlref --- -{{MathMLRef}}{{Deprecated_Header}}{{Non-standard_Header}} +{{Deprecated_Header}}{{Non-standard_Header}} The **``** [MathML](/en-US/docs/Web/MathML) element provides the possibility to add custom opening and closing brackets (such as parentheses) and separators (such as commas or semicolons) to an expression. @@ -17,7 +18,7 @@ The **``** [MathML](/en-US/docs/Web/MathML) element provides the possib ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). - `close` - : A string for the closing delimiter. The default value is `")"` and any white space is trimmed. diff --git a/files/en-us/web/mathml/element/mfenced/mfenced-ignored.svg b/files/en-us/web/mathml/reference/element/mfenced/mfenced-ignored.svg similarity index 100% rename from files/en-us/web/mathml/element/mfenced/mfenced-ignored.svg rename to files/en-us/web/mathml/reference/element/mfenced/mfenced-ignored.svg diff --git a/files/en-us/web/mathml/element/mfenced/mfenced-repeated.svg b/files/en-us/web/mathml/reference/element/mfenced/mfenced-repeated.svg similarity index 100% rename from files/en-us/web/mathml/element/mfenced/mfenced-repeated.svg rename to files/en-us/web/mathml/reference/element/mfenced/mfenced-repeated.svg diff --git a/files/en-us/web/mathml/element/mfrac/index.md b/files/en-us/web/mathml/reference/element/mfrac/index.md similarity index 91% rename from files/en-us/web/mathml/element/mfrac/index.md rename to files/en-us/web/mathml/reference/element/mfrac/index.md index 6b8265ee28367fb..494d3ec519b93d7 100644 --- a/files/en-us/web/mathml/element/mfrac/index.md +++ b/files/en-us/web/mathml/reference/element/mfrac/index.md @@ -1,12 +1,11 @@ --- title: -slug: Web/MathML/Element/mfrac +slug: Web/MathML/Reference/Element/mfrac page-type: mathml-element browser-compat: mathml.elements.mfrac +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to display fractions. It can also be used to mark up fraction-like objects such as [binomial coefficients](https://en.wikipedia.org/wiki/Binomial_coefficient) @@ -20,7 +19,7 @@ and [Legendre symbols](https://en.wikipedia.org/wiki/Legendre_symbol). ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attributes: - `denomalign` {{deprecated_inline}} {{Non-standard_Inline}} - : The alignment of the denominator under the fraction. Possible values are: `left`, `center` (default), and `right`. @@ -30,7 +29,7 @@ This element's attributes include the [global MathML attributes](/en-US/docs/Web - : The alignment of the numerator over the fraction. Possible values are: `left`, `center` (default), and `right`. > [!NOTE] -> For the `linethickness` attribute, some browsers may also accept the deprecated values `medium`, `thin` and `thick` (whose exact interpretation is left to implementers) or [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). +> For the `linethickness` attribute, some browsers may also accept the deprecated values `medium`, `thin` and `thick` (whose exact interpretation is left to implementers) or [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). ## Examples diff --git a/files/en-us/web/mathml/element/mi/index.md b/files/en-us/web/mathml/reference/element/mi/index.md similarity index 97% rename from files/en-us/web/mathml/element/mi/index.md rename to files/en-us/web/mathml/reference/element/mi/index.md index e5142da443a6394..1fb2f6de35c3d0d 100644 --- a/files/en-us/web/mathml/element/mi/index.md +++ b/files/en-us/web/mathml/reference/element/mi/index.md @@ -1,12 +1,11 @@ --- title: -slug: Web/MathML/Element/mi +slug: Web/MathML/Reference/Element/mi page-type: mathml-element browser-compat: mathml.elements.mi +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element indicates that the content should be rendered as an **identifier**, such as a function name, variable or symbolic constant. By default `` elements that contain multiple characters are a rendered as normal text, while single character characters are rendered as italic: the same formatting behaviour as the [CSS `text-transform`](/en-US/docs/Web/CSS/text-transform) property with a value of `math-auto`. @@ -64,7 +63,7 @@ In order to use a particular form of a character such as bold/italic, serif, san - `stretched` {{deprecated_inline}} - : Try and use stretched characters e.g. "𞹢". -This element also accepts the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element also accepts the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Examples diff --git a/files/en-us/web/mathml/element/mmultiscripts/index.md b/files/en-us/web/mathml/reference/element/mmultiscripts/index.md similarity index 95% rename from files/en-us/web/mathml/element/mmultiscripts/index.md rename to files/en-us/web/mathml/reference/element/mmultiscripts/index.md index 2372ccc701bb200..dc54467fb1f4bc9 100644 --- a/files/en-us/web/mathml/element/mmultiscripts/index.md +++ b/files/en-us/web/mathml/reference/element/mmultiscripts/index.md @@ -1,12 +1,11 @@ --- title: -slug: Web/MathML/Element/mmultiscripts +slug: Web/MathML/Reference/Element/mmultiscripts page-type: mathml-element browser-compat: mathml.elements.mmultiscripts +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to attach an arbitrary number of subscripts and superscripts to an expression at once, generalizing the {{ MathMLElement("msubsup") }} element. Scripts can be either pre-scripts (placed **before** the expression) or post-scripts (placed **after** it). MathML uses the syntax below, that is a base expression, followed by an arbitrary number of post-subscript and post-superscript pairs (attached in the given order) optionally followed by an {{ MathMLElement("mprescripts") }} element and an arbitrary number of pre-subscript and pre-superscript pairs (attached in the given order). In addition, empty {{ MathMLElement("mrow") }} elements can be used to represent absent scripts. @@ -30,7 +29,7 @@ MathML uses the syntax below, that is a base expression, followed by an arbitrar ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following deprecated attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following deprecated attributes: - `subscriptshift` {{deprecated_inline}} {{Non-standard_Inline}} - : A {{cssxref("length-percentage")}} indicating the minimum amount to shift the baseline of the subscript down. @@ -38,7 +37,7 @@ This element's attributes include the [global MathML attributes](/en-US/docs/Web - : A {{cssxref("length-percentage")}} indicating the minimum amount to shift the baseline of the superscript up. > [!NOTE] -> For the `subscriptshift` and `superscriptshift` attributes, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). +> For the `subscriptshift` and `superscriptshift` attributes, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). ## Examples diff --git a/files/en-us/web/mathml/element/mn/index.md b/files/en-us/web/mathml/reference/element/mn/index.md similarity index 91% rename from files/en-us/web/mathml/element/mn/index.md rename to files/en-us/web/mathml/reference/element/mn/index.md index 2c621f7456b4d5f..7b79652cfd9a91f 100644 --- a/files/en-us/web/mathml/element/mn/index.md +++ b/files/en-us/web/mathml/reference/element/mn/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/mn +slug: Web/MathML/Reference/Element/mn page-type: mathml-element browser-compat: mathml.elements.mn +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element represents a **numeric** literal which is normally a sequence of digits with a possible separator (a dot or a comma). However, it is also allowed to have arbitrary text in it which is actually a numeric quantity, for example "eleven". ## Attributes -This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Examples diff --git a/files/en-us/web/mathml/element/mo/index.md b/files/en-us/web/mathml/reference/element/mo/index.md similarity index 56% rename from files/en-us/web/mathml/element/mo/index.md rename to files/en-us/web/mathml/reference/element/mo/index.md index 533b0b0c2caaf3a..13079936aa81c5c 100644 --- a/files/en-us/web/mathml/element/mo/index.md +++ b/files/en-us/web/mathml/reference/element/mo/index.md @@ -1,29 +1,28 @@ --- title: -slug: Web/MathML/Element/mo +slug: Web/MathML/Reference/Element/mo page-type: mathml-element browser-compat: mathml.elements.mo +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element represents an **operator** in a broad sense. Besides operators in strict mathematical meaning, this element also includes "operators" like parentheses, separators like comma and semicolon, or "absolute value" bars. ## Attributes -In addition to the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes), this element accepts the following attributes [whose default values depend on the operator's form and content](https://w3c.github.io/mathml-core/#algorithm-for-determining-the-properties-of-an-embellished-operator): +In addition to the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes), this element accepts the following attributes [whose default values depend on the operator's form and content](https://w3c.github.io/mathml-core/#algorithm-for-determining-the-properties-of-an-embellished-operator): - `accent` {{Non-standard_Inline}} - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the operator should be treated as an accent when used as an [under](/en-US/docs/Web/MathML/Element/munder)- or [overscript](/en-US/docs/Web/MathML/Element/mover) (i.e. drawn bigger and closer to the base expression). + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether the operator should be treated as an accent when used as an [under](/en-US/docs/Web/MathML/Reference/Element/munder)- or [overscript](/en-US/docs/Web/MathML/Reference/Element/mover) (i.e. drawn bigger and closer to the base expression). - `fence` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the operator is a fence (such as parentheses). There is no visual effect for this attribute. + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether the operator is a fence (such as parentheses). There is no visual effect for this attribute. - `form` - : An [enumerated](/en-US/docs/Glossary/Enumerated) attribute specifying how the operator is to be presented. For example, depending on the value, a different amount of space might be rendered on either side of the operator. It can have one of the following values: - `prefix`: The operator appears before its operands. For example, in the expression `+ a`, the `+` is a prefix operator. - `infix`: The operator appears between its operands. In the expression `a + b`, the `+` is an infix operator. - `postfix`: The operator appears after its operands. For example, in the expression `a +`, the `+` is a postfix operator. - `largeop` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the operator should be drawn bigger when [`math-style`](/en-US/docs/Web/CSS/math-style) is set to `normal`. + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether the operator should be drawn bigger when [`math-style`](/en-US/docs/Web/CSS/math-style) is set to `normal`. - `lspace` - : A {{cssxref("length-percentage")}} indicating the amount of space before the operator. - `maxsize` @@ -31,18 +30,18 @@ In addition to the [global MathML attributes](/en-US/docs/Web/MathML/Global_attr - `minsize` - : A {{cssxref("length-percentage")}} indicating the minimum size of the operator when it is stretchy. - `movablelimits` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether attached under- and overscripts move to sub- and superscript positions when [`math-style`](/en-US/docs/Web/CSS/math-style) is set to `compact`. + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether attached under- and overscripts move to sub- and superscript positions when [`math-style`](/en-US/docs/Web/CSS/math-style) is set to `compact`. - `rspace` - : A {{cssxref("length-percentage")}} indicating the amount of space after the operator. - `separator` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the operator is a separator (such as commas). There is no visual effect for this attribute. + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether the operator is a separator (such as commas). There is no visual effect for this attribute. - `stretchy` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the operator stretches to the size of the adjacent element. + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether the operator stretches to the size of the adjacent element. - `symmetric` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether a stretchy operator should be vertically symmetric around the imaginary math axis (centered fraction line). + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether a stretchy operator should be vertically symmetric around the imaginary math axis (centered fraction line). > [!NOTE] -> For the `lspace`, `maxsize`, `minsize` and `rspace` attributes, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). +> For the `lspace`, `maxsize`, `minsize` and `rspace` attributes, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). ## Examples diff --git a/files/en-us/web/mathml/element/mover/index.md b/files/en-us/web/mathml/reference/element/mover/index.md similarity index 75% rename from files/en-us/web/mathml/element/mover/index.md rename to files/en-us/web/mathml/reference/element/mover/index.md index 6ec4f23d20288fd..0afdb3c70c24d05 100644 --- a/files/en-us/web/mathml/element/mover/index.md +++ b/files/en-us/web/mathml/reference/element/mover/index.md @@ -1,20 +1,19 @@ --- title: -slug: Web/MathML/Element/mover +slug: Web/MathML/Reference/Element/mover page-type: mathml-element browser-compat: mathml.elements.mover +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to attach an accent or a limit over an expression. Use the following syntax: ` base overscript ` ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attribute: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attribute: - `accent` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the over script should be treated as an accent (i.e. drawn bigger and closer to the base expression). + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether the over script should be treated as an accent (i.e. drawn bigger and closer to the base expression). ## Examples diff --git a/files/en-us/web/mathml/element/mpadded/index.md b/files/en-us/web/mathml/reference/element/mpadded/index.md similarity index 84% rename from files/en-us/web/mathml/element/mpadded/index.md rename to files/en-us/web/mathml/reference/element/mpadded/index.md index 4abc73face71989..e27c3eca1ad5d36 100644 --- a/files/en-us/web/mathml/element/mpadded/index.md +++ b/files/en-us/web/mathml/reference/element/mpadded/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/mpadded +slug: Web/MathML/Reference/Element/mpadded page-type: mathml-element browser-compat: mathml.elements.mpadded +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to add extra padding and to set the general adjustment of position and size of enclosed contents. ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attributes: - `depth` - : A {{cssxref("length-percentage")}} indicating the desired depth (below the baseline) of the `` element. @@ -29,10 +28,10 @@ This element's attributes include the [global MathML attributes](/en-US/docs/Web For the `depth`, `height`, `lspace`, `voffset` and `width` attributes, some browsers may instead accept a more complex syntax: 1. An optional `+` or `-` sign as a prefix, specifying an increment or decrement to the corresponding dimension (if absent, the corresponding dimension is set directly to specified value). -2. Followed by an [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) (let's call it α below). +2. Followed by an [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) (let's call it α below). 3. Optionally followed by a value (if absent, the specified value is interpreted as "100 times α percent"). - - A [unit](/en-US/docs/Web/MathML/Values#units). The specified value is interpreted the same as [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). - - A [namedspace constant](/en-US/docs/Web/MathML/Values#constants). The specified value is interpreted as α times the constant. + - A [unit](/en-US/docs/Web/MathML/Reference/Values#units). The specified value is interpreted the same as [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). + - A [namedspace constant](/en-US/docs/Web/MathML/Reference/Values#constants). The specified value is interpreted as α times the constant. - A pseudo-unit `width`, `height` or `depth`. The specified value is interpreted as α times the corresponding dimension of the content. - A percent sign followed by a pseudo-unit `width`, `height` or `depth`. The specified value is interpreted as α% the corresponding dimension of the content. diff --git a/files/en-us/web/mathml/element/mphantom/index.md b/files/en-us/web/mathml/reference/element/mphantom/index.md similarity index 90% rename from files/en-us/web/mathml/element/mphantom/index.md rename to files/en-us/web/mathml/reference/element/mphantom/index.md index 21a2a5d0aab7e6f..b0ce671c31e6334 100644 --- a/files/en-us/web/mathml/element/mphantom/index.md +++ b/files/en-us/web/mathml/reference/element/mphantom/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/mphantom +slug: Web/MathML/Reference/Element/mphantom page-type: mathml-element browser-compat: mathml.elements.mphantom +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is rendered invisibly, but dimensions (such as height, width, and baseline position) are still kept. ## Attributes -This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Examples diff --git a/files/en-us/web/mathml/element/mprescripts/index.md b/files/en-us/web/mathml/reference/element/mprescripts/index.md similarity index 93% rename from files/en-us/web/mathml/element/mprescripts/index.md rename to files/en-us/web/mathml/reference/element/mprescripts/index.md index 7e9f88a8920ea60..7ab7ed8cbbc4db2 100644 --- a/files/en-us/web/mathml/element/mprescripts/index.md +++ b/files/en-us/web/mathml/reference/element/mprescripts/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/mprescripts +slug: Web/MathML/Reference/Element/mprescripts page-type: mathml-element browser-compat: mathml.elements.mprescripts +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used within an {{ MathMLElement("mmultiscripts") }} element to indicate the start of the pre-scripts elements (subscripts and superscripts that are placed **before** the base expression). ## Attributes -This element supports [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element supports [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Example diff --git a/files/en-us/web/mathml/element/mroot/index.md b/files/en-us/web/mathml/reference/element/mroot/index.md similarity index 89% rename from files/en-us/web/mathml/element/mroot/index.md rename to files/en-us/web/mathml/reference/element/mroot/index.md index d391648eefd9ccc..58f4c328939de29 100644 --- a/files/en-us/web/mathml/element/mroot/index.md +++ b/files/en-us/web/mathml/reference/element/mroot/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/mroot +slug: Web/MathML/Reference/Element/mroot page-type: mathml-element browser-compat: mathml.elements.mroot +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to display roots with an explicit index. Two arguments are accepted, which leads to the syntax: ` base index `. ## Attributes -This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Examples diff --git a/files/en-us/web/mathml/element/mrow/index.md b/files/en-us/web/mathml/reference/element/mrow/index.md similarity index 84% rename from files/en-us/web/mathml/element/mrow/index.md rename to files/en-us/web/mathml/reference/element/mrow/index.md index 36640c66069db4f..49f224c7feabafc 100644 --- a/files/en-us/web/mathml/element/mrow/index.md +++ b/files/en-us/web/mathml/reference/element/mrow/index.md @@ -1,13 +1,12 @@ --- title: -slug: Web/MathML/Element/mrow +slug: Web/MathML/Reference/Element/mrow page-type: mathml-element browser-compat: mathml.elements.mrow +sidebar: mathmlref --- -{{MathMLRef}} - -The **``** [MathML](/en-US/docs/Web/MathML) element is used to group sub-expressions, which usually contain one or more [operators](/en-US/docs/Web/MathML/Element/mo) with their respective operands (such as {{ MathMLElement("mi") }} and {{ MathMLElement("mn") }}). This element renders as a horizontal row containing its arguments. +The **``** [MathML](/en-US/docs/Web/MathML) element is used to group sub-expressions, which usually contain one or more [operators](/en-US/docs/Web/MathML/Reference/Element/mo) with their respective operands (such as {{ MathMLElement("mi") }} and {{ MathMLElement("mn") }}). This element renders as a horizontal row containing its arguments. When writing a MathML expression, you should group elements within an `` in the same way as they are grouped in the mathematical interpretation of the expression. Proper grouping helps the rendering of the expression in several ways: @@ -16,7 +15,7 @@ When writing a MathML expression, you should group elements within an `` i ## Attributes -This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Examples diff --git a/files/en-us/web/mathml/element/ms/index.md b/files/en-us/web/mathml/reference/element/ms/index.md similarity index 89% rename from files/en-us/web/mathml/element/ms/index.md rename to files/en-us/web/mathml/reference/element/ms/index.md index acef0d08d8cb278..78ad5a5cc1b790e 100644 --- a/files/en-us/web/mathml/element/ms/index.md +++ b/files/en-us/web/mathml/reference/element/ms/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/ms +slug: Web/MathML/Reference/Element/ms page-type: mathml-element browser-compat: mathml.elements.ms +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element represents a **string** literal meant to be interpreted by programming languages and computer algebra systems. ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Examples diff --git a/files/en-us/web/mathml/element/mspace/index.md b/files/en-us/web/mathml/reference/element/mspace/index.md similarity index 83% rename from files/en-us/web/mathml/element/mspace/index.md rename to files/en-us/web/mathml/reference/element/mspace/index.md index 44438c186209db0..cf8c796bf3a6e33 100644 --- a/files/en-us/web/mathml/element/mspace/index.md +++ b/files/en-us/web/mathml/reference/element/mspace/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/mspace +slug: Web/MathML/Reference/Element/mspace page-type: mathml-element browser-compat: mathml.elements.mspace +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to display a blank space, whose size is set by its attributes. ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attributes: - `depth` - : A {{cssxref("length-percentage")}} indicating the desired depth (below the baseline) of the space. @@ -21,7 +20,7 @@ This element's attributes include the [global MathML attributes](/en-US/docs/Web - : A {{cssxref("length-percentage")}} indicating the desired width of the space. > [!NOTE] -> For the `depth`, `height`, `width` attributes, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). +> For the `depth`, `height`, `width` attributes, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). ## Examples diff --git a/files/en-us/web/mathml/element/msqrt/index.md b/files/en-us/web/mathml/reference/element/msqrt/index.md similarity index 89% rename from files/en-us/web/mathml/element/msqrt/index.md rename to files/en-us/web/mathml/reference/element/msqrt/index.md index 2e3c98c4580a63c..019366601a8c5e0 100644 --- a/files/en-us/web/mathml/element/msqrt/index.md +++ b/files/en-us/web/mathml/reference/element/msqrt/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/msqrt +slug: Web/MathML/Reference/Element/msqrt page-type: mathml-element browser-compat: mathml.elements.msqrt +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to display square roots (no index is displayed). The square root accepts only one argument, which leads to the following syntax: ` base `. ## Attributes -This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Examples diff --git a/files/en-us/web/mathml/element/mstyle/index.md b/files/en-us/web/mathml/reference/element/mstyle/index.md similarity index 81% rename from files/en-us/web/mathml/element/mstyle/index.md rename to files/en-us/web/mathml/reference/element/mstyle/index.md index ced0c062fd8b57c..114a19361621cb6 100644 --- a/files/en-us/web/mathml/element/mstyle/index.md +++ b/files/en-us/web/mathml/reference/element/mstyle/index.md @@ -1,20 +1,19 @@ --- title: -slug: Web/MathML/Element/mstyle +slug: Web/MathML/Reference/Element/mstyle page-type: mathml-element browser-compat: mathml.elements.mstyle +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to change the style of its children. > [!NOTE] -> Historically, this element accepted almost all the MathML attributes and it was used to override the default attribute values of its descendants. It was later restricted to only a few relevant styling attributes that were used in existing web pages. Nowadays, these styling attributes are [common to all MathML elements](/en-US/docs/Web/MathML/Global_attributes) and so `` is really just equivalent to an [``](/en-US/docs/Web/MathML/Element/mrow) element. However, `` may still be relevant for compatibility with MathML implementations outside browsers. +> Historically, this element accepted almost all the MathML attributes and it was used to override the default attribute values of its descendants. It was later restricted to only a few relevant styling attributes that were used in existing web pages. Nowadays, these styling attributes are [common to all MathML elements](/en-US/docs/Web/MathML/Reference/Global_attributes) and so `` is really just equivalent to an [``](/en-US/docs/Web/MathML/Reference/Element/mrow) element. However, `` may still be relevant for compatibility with MathML implementations outside browsers. ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following deprecated attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following deprecated attributes: - `background` {{deprecated_inline}} {{Non-standard_Inline}} - : Use CSS property {{cssxref("background-color")}} instead. @@ -31,7 +30,7 @@ This element's attributes include the [global MathML attributes](/en-US/docs/Web ### Attributes mapped to CSS -The following example uses [global attributes](/en-US/docs/Web/MathML/Global_attributes) `displaystyle` and `mathcolor` to respectively override the [`math-style`](/en-US/docs/Web/CSS/math-style) and [`color`](/en-US/docs/Web/CSS/color) of the `` and `` children: +The following example uses [global attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) `displaystyle` and `mathcolor` to respectively override the [`math-style`](/en-US/docs/Web/CSS/math-style) and [`color`](/en-US/docs/Web/CSS/color) of the `` and `` children: ```html diff --git a/files/en-us/web/mathml/element/msub/index.md b/files/en-us/web/mathml/reference/element/msub/index.md similarity index 82% rename from files/en-us/web/mathml/element/msub/index.md rename to files/en-us/web/mathml/reference/element/msub/index.md index 7cd0de8ce3d48a0..31100744f74f89a 100644 --- a/files/en-us/web/mathml/element/msub/index.md +++ b/files/en-us/web/mathml/reference/element/msub/index.md @@ -1,25 +1,24 @@ --- title: -slug: Web/MathML/Element/msub +slug: Web/MathML/Reference/Element/msub page-type: mathml-element browser-compat: mathml.elements.msub +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to attach a subscript to an expression. It uses the following syntax: ` base subscript `. ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following deprecated attribute: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following deprecated attribute: - `subscriptshift` {{deprecated_inline}} {{Non-standard_Inline}} - : A {{cssxref("length-percentage")}} indicating the minimum amount to shift the baseline of the subscript down. > [!NOTE] -> For the `subscriptshift` attribute, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). +> For the `subscriptshift` attribute, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). ## Examples diff --git a/files/en-us/web/mathml/element/msubsup/index.md b/files/en-us/web/mathml/reference/element/msubsup/index.md similarity index 87% rename from files/en-us/web/mathml/element/msubsup/index.md rename to files/en-us/web/mathml/reference/element/msubsup/index.md index c1f653bd4a8303f..177f1810e1fbe7c 100644 --- a/files/en-us/web/mathml/element/msubsup/index.md +++ b/files/en-us/web/mathml/reference/element/msubsup/index.md @@ -1,19 +1,18 @@ --- title: -slug: Web/MathML/Element/msubsup +slug: Web/MathML/Reference/Element/msubsup page-type: mathml-element browser-compat: mathml.elements.msubsup +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to attach both a subscript and a superscript, together, to an expression. It uses the following syntax: ` base subscript superscript `. ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following deprecated attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following deprecated attributes: - `subscriptshift` {{deprecated_inline}} {{Non-standard_Inline}} - : A {{cssxref("length-percentage")}} indicating the minimum amount to shift the baseline of the subscript down. @@ -21,7 +20,7 @@ This element's attributes include the [global MathML attributes](/en-US/docs/Web - : A {{cssxref("length-percentage")}} indicating the minimum amount to shift the baseline of the superscript up. > [!NOTE] -> For the `subscriptshift` and `superscriptshift` attributes, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). +> For the `subscriptshift` and `superscriptshift` attributes, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). ## Examples diff --git a/files/en-us/web/mathml/element/msup/index.md b/files/en-us/web/mathml/reference/element/msup/index.md similarity index 82% rename from files/en-us/web/mathml/element/msup/index.md rename to files/en-us/web/mathml/reference/element/msup/index.md index 17e9ac7d2dc3235..a025ede40b61598 100644 --- a/files/en-us/web/mathml/element/msup/index.md +++ b/files/en-us/web/mathml/reference/element/msup/index.md @@ -1,25 +1,24 @@ --- title: -slug: Web/MathML/Element/msup +slug: Web/MathML/Reference/Element/msup page-type: mathml-element browser-compat: mathml.elements.msup +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to attach a superscript to an expression. It uses the following syntax: ` base superscript `. ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following deprecated attribute: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following deprecated attribute: - `superscriptshift` {{deprecated_inline}} {{Non-standard_Inline}} - : A {{cssxref("length-percentage")}} indicating the minimum amount to shift the baseline of the superscript up. > [!NOTE] -> For the `superscriptshift` attribute, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). +> For the `superscriptshift` attribute, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). ## Examples diff --git a/files/en-us/web/mathml/element/mtable/index.md b/files/en-us/web/mathml/reference/element/mtable/index.md similarity index 94% rename from files/en-us/web/mathml/element/mtable/index.md rename to files/en-us/web/mathml/reference/element/mtable/index.md index b681bd6988e2dac..f943a719905b1a5 100644 --- a/files/en-us/web/mathml/element/mtable/index.md +++ b/files/en-us/web/mathml/reference/element/mtable/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/mtable +slug: Web/MathML/Reference/Element/mtable page-type: mathml-element browser-compat: mathml.elements.mtable +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element allows you to create tables or matrices. Its children are {{ MathMLElement("mtr") }} elements (representing rows), each of them having {{ MathMLElement("mtd") }} elements as its children (representing cells). These elements are similar to {{ HTMLElement("table") }}, {{ HTMLElement("tr") }} and {{ HTMLElement("td") }} elements of [HTML](/en-US/docs/Web/HTML). ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). Some browsers may also support the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). Some browsers may also support the following attributes: - `align` {{Non-standard_Inline}} @@ -46,7 +45,7 @@ This element's attributes include the [global MathML attributes](/en-US/docs/Web - : A {{cssxref("length-percentage")}} indicating the width of the entire table. > [!NOTE] -> For the `width` attribute, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). +> For the `width` attribute, some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). ## Examples diff --git a/files/en-us/web/mathml/element/mtd/index.md b/files/en-us/web/mathml/reference/element/mtd/index.md similarity index 93% rename from files/en-us/web/mathml/element/mtd/index.md rename to files/en-us/web/mathml/reference/element/mtd/index.md index f362699e8aee4d9..91c221f15c3d961 100644 --- a/files/en-us/web/mathml/element/mtd/index.md +++ b/files/en-us/web/mathml/reference/element/mtd/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/mtd +slug: Web/MathML/Reference/Element/mtd page-type: mathml-element browser-compat: mathml.elements.mtd +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element represents a cell in a table or a matrix. It may only appear in a {{ MathMLElement("mtr") }} element. This element is similar to the {{ HTMLElement("td") }} element of [HTML](/en-US/docs/Web/HTML). ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attributes: - `columnspan` - : A non-negative integer value that indicates on how many columns does the cell extend. diff --git a/files/en-us/web/mathml/element/mtext/index.md b/files/en-us/web/mathml/reference/element/mtext/index.md similarity index 90% rename from files/en-us/web/mathml/element/mtext/index.md rename to files/en-us/web/mathml/reference/element/mtext/index.md index c4117a1b236d025..112fa28dad6d8f4 100644 --- a/files/en-us/web/mathml/element/mtext/index.md +++ b/files/en-us/web/mathml/reference/element/mtext/index.md @@ -1,19 +1,18 @@ --- title: -slug: Web/MathML/Element/mtext +slug: Web/MathML/Reference/Element/mtext page-type: mathml-element browser-compat: mathml.elements.mtext +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to render arbitrary text with _no_ notational meaning, such as comments or annotations. To display text _with_ notational meaning, use {{ MathMLElement("mi") }}, {{ MathMLElement("mn") }}, {{ MathMLElement("mo") }} or {{ MathMLElement("ms") }} instead. ## Attributes -This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element accepts the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Examples diff --git a/files/en-us/web/mathml/element/mtr/index.md b/files/en-us/web/mathml/reference/element/mtr/index.md similarity index 89% rename from files/en-us/web/mathml/element/mtr/index.md rename to files/en-us/web/mathml/reference/element/mtr/index.md index c419701561675fb..ae0642061b26f7c 100644 --- a/files/en-us/web/mathml/element/mtr/index.md +++ b/files/en-us/web/mathml/reference/element/mtr/index.md @@ -1,17 +1,16 @@ --- title: -slug: Web/MathML/Element/mtr +slug: Web/MathML/Reference/Element/mtr page-type: mathml-element browser-compat: mathml.elements.mtr +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element represents a row in a table or a matrix. It may only appear in a {{ MathMLElement("mtable") }} element and its children are {{ MathMLElement("mtd") }} elements representing cells. This element is similar to the {{ HTMLElement("tr") }} element of [HTML](/en-US/docs/Web/HTML). ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). Some browsers may also support the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). Some browsers may also support the following attributes: - `columnalign` {{Non-standard_Inline}} - : Overrides the horizontal alignment of cells specified by {{ MathMLElement("mtable") }} for this row. Multiple values separated by space are allowed and apply to the corresponding columns (e.g. `columnalign="left center right"`). Possible values are: `left`, `center` and `right`. diff --git a/files/en-us/web/mathml/element/munder/index.md b/files/en-us/web/mathml/reference/element/munder/index.md similarity index 75% rename from files/en-us/web/mathml/element/munder/index.md rename to files/en-us/web/mathml/reference/element/munder/index.md index 63b722eff10b73f..eef1857d28b1a6f 100644 --- a/files/en-us/web/mathml/element/munder/index.md +++ b/files/en-us/web/mathml/reference/element/munder/index.md @@ -1,20 +1,19 @@ --- title: -slug: Web/MathML/Element/munder +slug: Web/MathML/Reference/Element/munder page-type: mathml-element browser-compat: mathml.elements.munder +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to attach an accent or a limit under an expression. It uses the following syntax: ` base underscript ` ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attribute: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attribute: - `accentunder` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the under script should be treated as an accent (i.e. drawn bigger and closer to the base expression). + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether the under script should be treated as an accent (i.e. drawn bigger and closer to the base expression). ## Examples diff --git a/files/en-us/web/mathml/element/munderover/index.md b/files/en-us/web/mathml/reference/element/munderover/index.md similarity index 66% rename from files/en-us/web/mathml/element/munderover/index.md rename to files/en-us/web/mathml/reference/element/munderover/index.md index c9499682fb9d0b6..339beae5daa789f 100644 --- a/files/en-us/web/mathml/element/munderover/index.md +++ b/files/en-us/web/mathml/reference/element/munderover/index.md @@ -1,24 +1,23 @@ --- title: -slug: Web/MathML/Element/munderover +slug: Web/MathML/Reference/Element/munderover page-type: mathml-element browser-compat: mathml.elements.munderover +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element is used to attach accents or limits both under and over an expression. It uses the following syntax: ` base underscript overscript ` ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attributes: +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes) as well as the following attributes: - `accent` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the over script should be treated as an accent (i.e. drawn bigger and closer to the base expression). + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether the over script should be treated as an accent (i.e. drawn bigger and closer to the base expression). - `accentunder` - - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the under script should be treated as an accent (i.e. drawn bigger and closer to the base expression). + - : A [``](/en-US/docs/Web/MathML/Reference/Values#mathml-specific_types) indicating whether the under script should be treated as an accent (i.e. drawn bigger and closer to the base expression). ## Examples diff --git a/files/en-us/web/mathml/element/semantics/index.md b/files/en-us/web/mathml/reference/element/semantics/index.md similarity index 96% rename from files/en-us/web/mathml/element/semantics/index.md rename to files/en-us/web/mathml/reference/element/semantics/index.md index eb997f07537f736..ae96d48585d16b7 100644 --- a/files/en-us/web/mathml/element/semantics/index.md +++ b/files/en-us/web/mathml/reference/element/semantics/index.md @@ -1,12 +1,11 @@ --- title: -slug: Web/MathML/Element/semantics +slug: Web/MathML/Reference/Element/semantics page-type: mathml-element browser-compat: mathml.elements.semantics +sidebar: mathmlref --- -{{MathMLRef}} - The **``** [MathML](/en-US/docs/Web/MathML) element associates annotations with a MathML expression, for example its text source as a [lightweight markup language](https://en.wikipedia.org/wiki/Lightweight_markup_language) or mathematical meaning expressed in a special {{glossary("XML")}} dialect. Typically, its structure is: - a first child which is a MathML expression to be annotated. @@ -37,7 +36,7 @@ semantics > :not(:first-child) { ## Attributes -This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes). +This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). ## Example diff --git a/files/en-us/web/mathml/global_attributes/dir/index.md b/files/en-us/web/mathml/reference/global_attributes/dir/index.md similarity index 83% rename from files/en-us/web/mathml/global_attributes/dir/index.md rename to files/en-us/web/mathml/reference/global_attributes/dir/index.md index 16e1a1d1173d381..10e788c04d83e6e 100644 --- a/files/en-us/web/mathml/global_attributes/dir/index.md +++ b/files/en-us/web/mathml/reference/global_attributes/dir/index.md @@ -1,13 +1,12 @@ --- title: dir -slug: Web/MathML/Global_attributes/dir +slug: Web/MathML/Reference/Global_attributes/dir page-type: mathml-attribute browser-compat: mathml.global_attributes.dir +sidebar: mathmlref --- -{{MathMLRef}} - -The **`dir`** [global attribute](/en-US/docs/Web/MathML/Global_attributes) is an [enumerated](/en-US/docs/Glossary/Enumerated) attribute that indicates the directionality of the MathML element. +The **`dir`** [global attribute](/en-US/docs/Web/MathML/Reference/Global_attributes) is an [enumerated](/en-US/docs/Glossary/Enumerated) attribute that indicates the directionality of the MathML element. ## Example @@ -68,7 +67,7 @@ body { > > - This attribute can be overridden by the CSS property {{ cssxref("direction") }}, if a CSS page is active and the element supports these properties. > - As the directionality of mathematics is semantically related to its content and not to its presentation, it is recommended that web developers use this attribute instead of the related CSS properties when possible. That way, the formulas will display correctly even on a browser that doesn't support CSS or has the CSS deactivated. -> - The `dir` attribute is used to set the directionality of math formulas, which is often from right to left in Arabic-speaking world. However, languages written from right to left often embed mathematical content written from left to right. Consequently, the `auto` keyword from the HTML `dir` attribute is not recognized and by default the [user agent stylesheet](/en-US/docs/Web/CSS/CSS_cascade/Cascade#user-agent_stylesheets) resets the direction property on the [`math`](/en-US/docs/Web/MathML/Element/math) element. +> - The `dir` attribute is used to set the directionality of math formulas, which is often from right to left in Arabic-speaking world. However, languages written from right to left often embed mathematical content written from left to right. Consequently, the `auto` keyword from the HTML `dir` attribute is not recognized and by default the [user agent stylesheet](/en-US/docs/Web/CSS/CSS_cascade/Cascade#user-agent_stylesheets) resets the direction property on the [`math`](/en-US/docs/Web/MathML/Reference/Element/math) element. ## Specifications @@ -80,6 +79,6 @@ body { ## See also -- All [global attributes](/en-US/docs/Web/MathML/Global_attributes). +- All [global attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). - {{cssxref("direction")}} - The HTML [`dir`](/en-US/docs/Web/HTML/Global_attributes/dir) global attribute diff --git a/files/en-us/web/mathml/global_attributes/displaystyle/index.md b/files/en-us/web/mathml/reference/global_attributes/displaystyle/index.md similarity index 52% rename from files/en-us/web/mathml/global_attributes/displaystyle/index.md rename to files/en-us/web/mathml/reference/global_attributes/displaystyle/index.md index 07c054ab185e25a..89bd05a6abbadce 100644 --- a/files/en-us/web/mathml/global_attributes/displaystyle/index.md +++ b/files/en-us/web/mathml/reference/global_attributes/displaystyle/index.md @@ -1,17 +1,16 @@ --- title: displaystyle -slug: Web/MathML/Global_attributes/displaystyle +slug: Web/MathML/Reference/Global_attributes/displaystyle page-type: mathml-attribute browser-compat: mathml.global_attributes.displaystyle +sidebar: mathmlref --- -{{MathMLRef}} - -The **`displaystyle`** [global attribute](/en-US/docs/Web/MathML/Global_attributes) is a boolean setting the [math-style](/en-US/docs/Web/CSS/math-style) of a MathML element. +The **`displaystyle`** [global attribute](/en-US/docs/Web/MathML/Reference/Global_attributes) is a boolean setting the [math-style](/en-US/docs/Web/CSS/math-style) of a MathML element. ## Example -In this example, an [munder](/en-US/docs/Web/MathML/Element/munder) element is used to attach a script "A" to a base "∑". By default, the summation symbol is rendered with the [font-size](/en-US/docs/Web/CSS/font-size) inherited from its parent and the A as a scaled down subscript. With the explicit `displaystyle="true"` attribute, the summation symbol is instead drawn bigger and the "A" becomes an underscript. +In this example, an [munder](/en-US/docs/Web/MathML/Reference/Element/munder) element is used to attach a script "A" to a base "∑". By default, the summation symbol is rendered with the [font-size](/en-US/docs/Web/CSS/font-size) inherited from its parent and the A as a scaled down subscript. With the explicit `displaystyle="true"` attribute, the summation symbol is instead drawn bigger and the "A" becomes an underscript. ```css hidden html, @@ -65,8 +64,8 @@ body { ## See also -- All [global attributes](/en-US/docs/Web/MathML/Global_attributes). -- The [scriptlevel](/en-US/docs/Web/MathML/Global_attributes/scriptlevel) global attribute. +- All [global attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). +- The [scriptlevel](/en-US/docs/Web/MathML/Reference/Global_attributes/scriptlevel) global attribute. - {{cssxref("font-size")}} - {{cssxref("math-depth")}} - {{cssxref("math-style")}} diff --git a/files/en-us/web/mathml/global_attributes/href/index.md b/files/en-us/web/mathml/reference/global_attributes/href/index.md similarity index 83% rename from files/en-us/web/mathml/global_attributes/href/index.md rename to files/en-us/web/mathml/reference/global_attributes/href/index.md index fa15704ac3cdc03..97555d42444baca 100644 --- a/files/en-us/web/mathml/global_attributes/href/index.md +++ b/files/en-us/web/mathml/reference/global_attributes/href/index.md @@ -1,15 +1,16 @@ --- title: href -slug: Web/MathML/Global_attributes/href +slug: Web/MathML/Reference/Global_attributes/href page-type: mathml-attribute status: - non-standard browser-compat: mathml.global_attributes.href +sidebar: mathmlref --- -{{MathMLRef}}{{Non-standard_header}} +{{Non-standard_header}} -The **`href`** [global attribute](/en-US/docs/Web/MathML/Global_attributes) creates a hyperlink on the MathML element pointing to the specified URL. +The **`href`** [global attribute](/en-US/docs/Web/MathML/Reference/Global_attributes) creates a hyperlink on the MathML element pointing to the specified URL. ## Example @@ -88,4 +89,4 @@ The `href` attribute is not defined in any browser-oriented specification but yo ## See also -- All [global attributes](/en-US/docs/Web/MathML/Global_attributes). +- All [global attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). diff --git a/files/en-us/web/mathml/global_attributes/index.md b/files/en-us/web/mathml/reference/global_attributes/index.md similarity index 81% rename from files/en-us/web/mathml/global_attributes/index.md rename to files/en-us/web/mathml/reference/global_attributes/index.md index ec17908835cadc6..5dc2369ab86593d 100644 --- a/files/en-us/web/mathml/global_attributes/index.md +++ b/files/en-us/web/mathml/reference/global_attributes/index.md @@ -1,20 +1,20 @@ --- -title: Global attributes -slug: Web/MathML/Global_attributes +title: MathML global attributes +short-title: Global attributes +slug: Web/MathML/Reference/Global_attributes page-type: landing-page browser-compat: mathml.global_attributes +sidebar: mathmlref --- -{{MathMLRef}} - **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](/en-US/docs/Web/MathML/Element), _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. +Global attributes may be specified on all [MathML elements](/en-US/docs/Web/MathML/Reference/Element), _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: - The [event handler](/en-US/docs/Web/Events/Event_handlers) attributes such as **`onclick`**, **`onfocus`**, etc. -- The [`href`](/en-US/docs/Web/MathML/Global_attributes/href) attribute for making MathML element a hyperlink. +- The [`href`](/en-US/docs/Web/MathML/Reference/Global_attributes/href) attribute for making MathML element a hyperlink. ## List of global attributes @@ -30,14 +30,14 @@ In addition to the basic MathML global attributes, the following global attribut - : Forms a class of attributes, called custom data attributes, that allow proprietary information to be exchanged between the [MathML](/en-US/docs/Web/MathML) and its {{glossary("DOM")}} representation that may be used by scripts. All such custom data are available via the {{DOMxRef("MathMLElement")}} interface of the element the attribute is set on. The {{DOMxRef("HTMLElement.dataset")}} property gives access to them. -- [`dir`](/en-US/docs/Web/MathML/Global_attributes/dir) +- [`dir`](/en-US/docs/Web/MathML/Reference/Global_attributes/dir) - : An [enumerated](/en-US/docs/Glossary/Enumerated) attribute indicating the directionality of the MathML element. It can have the following values: - `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`](/en-US/docs/Web/MathML/Global_attributes/displaystyle): +- [`displaystyle`](/en-US/docs/Web/MathML/Reference/Global_attributes/displaystyle): - : A boolean setting the [math-style](/en-US/docs/Web/CSS/math-style) for the element. - `true`, which means `normal`. @@ -47,15 +47,15 @@ In addition to the basic MathML global attributes, the following global attribut - : Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS). -- [`mathbackground`](/en-US/docs/Web/MathML/Global_attributes/mathbackground) +- [`mathbackground`](/en-US/docs/Web/MathML/Reference/Global_attributes/mathbackground) - : A [background-color](/en-US/docs/Web/CSS/background-color) for the element. -- [`mathcolor`](/en-US/docs/Web/MathML/Global_attributes/mathcolor) +- [`mathcolor`](/en-US/docs/Web/MathML/Reference/Global_attributes/mathcolor) - : A [color](/en-US/docs/Web/CSS/color) for the element. -- [`mathsize`](/en-US/docs/Web/MathML/Global_attributes/mathsize) +- [`mathsize`](/en-US/docs/Web/MathML/Reference/Global_attributes/mathsize) - : A {{cssxref("length-percentage")}} used as a [font-size](/en-US/docs/Web/CSS/font-size) for the element. @@ -63,9 +63,9 @@ In addition to the basic MathML global attributes, the following global attribut - : A cryptographic nonce ("number used once") which can be used by [Content Security Policy](/en-US/docs/Web/HTTP/Guides/CSP) to determine whether a given fetch will be allowed to proceed. -- [`scriptlevel`](/en-US/docs/Web/MathML/Global_attributes/scriptlevel) +- [`scriptlevel`](/en-US/docs/Web/MathML/Reference/Global_attributes/scriptlevel) - - : Specifies a [math-depth](/en-US/docs/Web/CSS/math-depth) for the element. See the [scriptlevel page](/en-US/docs/Web/MathML/Global_attributes/scriptlevel#values) for accepted values and mapping. + - : Specifies a [math-depth](/en-US/docs/Web/CSS/math-depth) for the element. See the [scriptlevel page](/en-US/docs/Web/MathML/Reference/Global_attributes/scriptlevel#values) for accepted values and mapping. - [`style`](/en-US/docs/Web/HTML/Global_attributes/style) diff --git a/files/en-us/web/mathml/global_attributes/mathbackground/index.md b/files/en-us/web/mathml/reference/global_attributes/mathbackground/index.md similarity index 87% rename from files/en-us/web/mathml/global_attributes/mathbackground/index.md rename to files/en-us/web/mathml/reference/global_attributes/mathbackground/index.md index 123239b8fc82faf..d2c1e3440dcfc09 100644 --- a/files/en-us/web/mathml/global_attributes/mathbackground/index.md +++ b/files/en-us/web/mathml/reference/global_attributes/mathbackground/index.md @@ -1,15 +1,16 @@ --- title: mathbackground -slug: Web/MathML/Global_attributes/mathbackground +slug: Web/MathML/Reference/Global_attributes/mathbackground page-type: mathml-attribute status: - deprecated browser-compat: mathml.global_attributes.mathbackground +sidebar: mathmlref --- -{{MathMLRef}}{{Deprecated_Header}} +{{Deprecated_Header}} -The **`mathbackground`** [global attribute](/en-US/docs/Web/MathML/Global_attributes) sets the [background-color](/en-US/docs/Web/CSS/background-color) of a MathML element. +The **`mathbackground`** [global attribute](/en-US/docs/Web/MathML/Reference/Global_attributes) sets the [background-color](/en-US/docs/Web/CSS/background-color) of a MathML element. > [!NOTE] > Use CSS for styling MathML whenever possible. The `mathbackground` attribute should only be included for applications that are not CSS-aware and will be overridden by the CSS `background-color` property value, if set. @@ -85,5 +86,5 @@ body { ## See also -- All [global attributes](/en-US/docs/Web/MathML/Global_attributes). +- All [global attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). - {{cssxref("background-color")}} diff --git a/files/en-us/web/mathml/global_attributes/mathcolor/index.md b/files/en-us/web/mathml/reference/global_attributes/mathcolor/index.md similarity index 86% rename from files/en-us/web/mathml/global_attributes/mathcolor/index.md rename to files/en-us/web/mathml/reference/global_attributes/mathcolor/index.md index ff01cbb9df95c09..67a8fdc68a35e97 100644 --- a/files/en-us/web/mathml/global_attributes/mathcolor/index.md +++ b/files/en-us/web/mathml/reference/global_attributes/mathcolor/index.md @@ -1,15 +1,16 @@ --- title: mathcolor -slug: Web/MathML/Global_attributes/mathcolor +slug: Web/MathML/Reference/Global_attributes/mathcolor page-type: mathml-attribute status: - deprecated browser-compat: mathml.global_attributes.mathcolor +sidebar: mathmlref --- -{{MathMLRef}}{{Deprecated_Header}} +{{Deprecated_Header}} -The **`mathcolor`** [global attribute](/en-US/docs/Web/MathML/Global_attributes) sets the [color](/en-US/docs/Web/CSS/color) of a MathML element. +The **`mathcolor`** [global attribute](/en-US/docs/Web/MathML/Reference/Global_attributes) sets the [color](/en-US/docs/Web/CSS/color) of a MathML element. > [!NOTE] > Use CSS for styling MathML whenever possible. The `mathcolor` attribute should only be included for applications that are not CSS-aware and will be overridden by the CSS `color` property, if set. @@ -98,5 +99,5 @@ body { ## See also -- All [global attributes](/en-US/docs/Web/MathML/Global_attributes). +- All [global attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). - {{cssxref("color")}} diff --git a/files/en-us/web/mathml/global_attributes/mathsize/index.md b/files/en-us/web/mathml/reference/global_attributes/mathsize/index.md similarity index 82% rename from files/en-us/web/mathml/global_attributes/mathsize/index.md rename to files/en-us/web/mathml/reference/global_attributes/mathsize/index.md index ca91c912b227403..db4cd7a9079f62c 100644 --- a/files/en-us/web/mathml/global_attributes/mathsize/index.md +++ b/files/en-us/web/mathml/reference/global_attributes/mathsize/index.md @@ -1,15 +1,16 @@ --- title: mathsize -slug: Web/MathML/Global_attributes/mathsize +slug: Web/MathML/Reference/Global_attributes/mathsize page-type: mathml-attribute status: - deprecated browser-compat: mathml.global_attributes.mathsize +sidebar: mathmlref --- -{{MathMLRef}}{{Deprecated_Header}} +{{Deprecated_Header}} -The **`mathsize`** [global attribute](/en-US/docs/Web/MathML/Global_attributes) sets the [font-size](/en-US/docs/Web/CSS/font-size) of a MathML element. +The **`mathsize`** [global attribute](/en-US/docs/Web/MathML/Reference/Global_attributes) sets the [font-size](/en-US/docs/Web/CSS/font-size) of a MathML element. > [!NOTE] > Use CSS for styling MathML whenever possible. The `mathsize` attribute should only be included for applications that are not CSS-aware and will be overridden by the CSS `font-size` property, if set. @@ -70,7 +71,7 @@ body { - : A positive {{cssxref("<percentage>")}} value, relative to the parent element's font size. > [!NOTE] -> Some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Values#legacy_mathml_lengths). +> Some browsers may also accept [legacy MathML lengths](/en-US/docs/Web/MathML/Reference/Values#legacy_mathml_lengths). ## Specifications @@ -90,5 +91,5 @@ body { ## See also -- All [global attributes](/en-US/docs/Web/MathML/Global_attributes). +- All [global attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). - {{cssxref("font-size")}} diff --git a/files/en-us/web/mathml/global_attributes/scriptlevel/index.md b/files/en-us/web/mathml/reference/global_attributes/scriptlevel/index.md similarity index 76% rename from files/en-us/web/mathml/global_attributes/scriptlevel/index.md rename to files/en-us/web/mathml/reference/global_attributes/scriptlevel/index.md index c456d8fd396d474..50de0339bcee1fb 100644 --- a/files/en-us/web/mathml/global_attributes/scriptlevel/index.md +++ b/files/en-us/web/mathml/reference/global_attributes/scriptlevel/index.md @@ -1,13 +1,12 @@ --- title: scriptlevel -slug: Web/MathML/Global_attributes/scriptlevel +slug: Web/MathML/Reference/Global_attributes/scriptlevel page-type: mathml-attribute browser-compat: mathml.global_attributes.scriptlevel +sidebar: mathmlref --- -{{MathMLRef}} - -The **`scriptlevel`** [global attribute](/en-US/docs/Web/MathML/Global_attributes) sets the [math-depth](/en-US/docs/Web/CSS/math-depth) of a MathML element. It allows overriding rules from the [user agent stylesheet](/en-US/docs/Web/CSS/CSS_cascade/Cascade#user-agent_stylesheets) that define automatic calculation of [font-size](/en-US/docs/Web/CSS/font-size) within MathML formulas. +The **`scriptlevel`** [global attribute](/en-US/docs/Web/MathML/Reference/Global_attributes) sets the [math-depth](/en-US/docs/Web/CSS/math-depth) of a MathML element. It allows overriding rules from the [user agent stylesheet](/en-US/docs/Web/CSS/CSS_cascade/Cascade#user-agent_stylesheets) that define automatic calculation of [font-size](/en-US/docs/Web/CSS/font-size) within MathML formulas. ## Example @@ -71,8 +70,8 @@ If `` is an unsigned [integer](/en-US/docs/Web/CSS/integer) (i.e. with prefix ## See also -- All [global attributes](/en-US/docs/Web/MathML/Global_attributes). -- The [displaystyle](/en-US/docs/Web/MathML/Global_attributes/displaystyle) global attribute. +- All [global attributes](/en-US/docs/Web/MathML/Reference/Global_attributes). +- The [displaystyle](/en-US/docs/Web/MathML/Reference/Global_attributes/displaystyle) global attribute. - {{cssxref("font-size")}} - {{cssxref("math-depth")}} - {{cssxref("math-style")}} diff --git a/files/en-us/web/mathml/reference/index.md b/files/en-us/web/mathml/reference/index.md new file mode 100644 index 000000000000000..db3f70b81413a60 --- /dev/null +++ b/files/en-us/web/mathml/reference/index.md @@ -0,0 +1,16 @@ +--- +title: MathML reference +short-title: Reference +slug: Web/MathML/Reference +page-type: listing-page +sidebar: mathmlref +--- + +This page lists reference documentation for MathML. + +{{SubPagesWithSummaries}} + +## See also + +- [MathML tutorials](/en-US/docs/Web/MathML/Tutorials) +- [MathML guides](/en-US/docs/Web/MathML/Guides) diff --git a/files/en-us/web/mathml/values/index.md b/files/en-us/web/mathml/reference/values/index.md similarity index 97% rename from files/en-us/web/mathml/values/index.md rename to files/en-us/web/mathml/reference/values/index.md index 2a4ab84da73568a..78359457c9059f3 100644 --- a/files/en-us/web/mathml/values/index.md +++ b/files/en-us/web/mathml/reference/values/index.md @@ -1,12 +1,12 @@ --- -title: MathML Attribute Values -slug: Web/MathML/Values +title: MathML attribute values +short-title: Values +slug: Web/MathML/Reference/Values page-type: guide browser-compat: mathml.attribute_values +sidebar: mathmlref --- -{{MathMLRef}} - ## MathML-specific types In addition to [CSS data types](/en-US/docs/Web/CSS/CSS_Values_and_Units/CSS_data_types), some MathML attributes accept the following types: diff --git a/files/en-us/web/mathml/guides/fractions_and_roots/index.md b/files/en-us/web/mathml/tutorials/for_beginners/fractions_and_roots/index.md similarity index 85% rename from files/en-us/web/mathml/guides/fractions_and_roots/index.md rename to files/en-us/web/mathml/tutorials/for_beginners/fractions_and_roots/index.md index a3491ae2ad669b7..05156029224aa4b 100644 --- a/files/en-us/web/mathml/guides/fractions_and_roots/index.md +++ b/files/en-us/web/mathml/tutorials/for_beginners/fractions_and_roots/index.md @@ -1,18 +1,18 @@ --- title: MathML fractions and roots -slug: Web/MathML/Guides/Fractions_and_roots -page-type: guide +short-title: Fractions and roots +slug: Web/MathML/Tutorials/For_beginners/Fractions_and_roots +page-type: tutorial-chapter +sidebar: mathmlref --- -{{MathMLRef}} - -{{PreviousMenuNext("Web/MathML/Guides/Text_containers", "Web/MathML/Guides/Scripts", "Web/MathML/Guides")}} +{{PreviousMenuNext("Web/MathML/Tutorials/For_beginners/Text_containers", "Web/MathML/Tutorials/For_beginners/Scripts", "Web/MathML/Tutorials/For_beginners")}} Relying on text containers, this article describes how to build more complex MathML expressions by nesting fractions and roots. ## Subtrees of \, \ and \ -In the [getting started with MathML](/en-US/docs/Web/MathML/Guides/Getting_started) article, we've already met the `` element to describe a fraction. Let's consider a basic example which adds new elements for roots (`` and ``): +In the [getting started with MathML](/en-US/docs/Web/MathML/Tutorials/For_beginners/Getting_started) article, we've already met the `` element to describe a fraction. Let's consider a basic example which adds new elements for roots (`` and ``): ```html @@ -44,7 +44,7 @@ Below is a screenshot of how it is rendered by a browser: ![Screenshot of mfrac, msqrt, mroot](mfrac-msqrt-mroot.png) - We already know that the `` element is rendered as a fraction: The first child (the numerator) is drawn above the second child (the denominator) separated by a horizontal bar. -- The `` is rendered as a square root: its children are laid out like an [``](/en-US/docs/Web/MathML/Guides/Getting_started#grouping_with_the_mrow_element), prefixed by a root symbol √ and completely covered by an overbar. +- The `` is rendered as a square root: its children are laid out like an [``](/en-US/docs/Web/MathML/Tutorials/For_beginners/Getting_started#grouping_with_the_mrow_element), prefixed by a root symbol √ and completely covered by an overbar. - Finally, the `` element is rendered as an nth root: The first element is covered by the radical symbol while the second element is used as the degree of the root and rendered as a prefix superscript. ### Active learning: nesting different elements @@ -266,7 +266,7 @@ As previously seen, the overbar of the `` and `` elements stretche {{ EmbedLiveSample('Stretchy_radical_symbols', 700, 200, "", "") }} > [!WARNING] -> Special [math fonts](/en-US/docs/Web/MathML/Fonts) are generally required to make that stretching possible, the previous example relies on [web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts). +> Special [math fonts](/en-US/docs/Web/MathML/Guides/Fonts) are generally required to make that stretching possible, the previous example relies on [web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts). ## Fractions without bar @@ -305,12 +305,12 @@ Some mathematical concepts are sometimes written using fraction-like notations s ## Summary -In this lesson, we've seen how to build fractions and roots using the ``, `` and `` elements. We noticed some special feature of these elements, namely the fraction and radical symbol. We've seen how to use the `linethickness` attribute to draw fractions without bars. In the next article, we will continue with basic math notations and consider [scripts](/en-US/docs/Web/MathML/Guides/Scripts). +In this lesson, we've seen how to build fractions and roots using the ``, `` and `` elements. We noticed some special feature of these elements, namely the fraction and radical symbol. We've seen how to use the `linethickness` attribute to draw fractions without bars. In the next article, we will continue with basic math notations and consider [scripts](/en-US/docs/Web/MathML/Tutorials/For_beginners/Scripts). ## See also -- [The `` element](/en-US/docs/Web/MathML/Element/mfrac) -- [The `` element](/en-US/docs/Web/MathML/Element/msqrt) -- [The `` element](/en-US/docs/Web/MathML/Element/mroot) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mfrac) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/msqrt) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mroot) -{{PreviousMenuNext("Web/MathML/Guides/Text_containers", "Web/MathML/Guides/Scripts", "Web/MathML/Guides")}} +{{PreviousMenuNext("Web/MathML/Tutorials/For_beginners/Text_containers", "Web/MathML/Tutorials/For_beginners/Scripts", "Web/MathML/Tutorials/For_beginners")}} diff --git a/files/en-us/web/mathml/guides/fractions_and_roots/mfrac-msqrt-mroot.png b/files/en-us/web/mathml/tutorials/for_beginners/fractions_and_roots/mfrac-msqrt-mroot.png similarity index 100% rename from files/en-us/web/mathml/guides/fractions_and_roots/mfrac-msqrt-mroot.png rename to files/en-us/web/mathml/tutorials/for_beginners/fractions_and_roots/mfrac-msqrt-mroot.png diff --git a/files/en-us/web/mathml/guides/getting_started/index.md b/files/en-us/web/mathml/tutorials/for_beginners/getting_started/index.md similarity index 86% rename from files/en-us/web/mathml/guides/getting_started/index.md rename to files/en-us/web/mathml/tutorials/for_beginners/getting_started/index.md index c05aa5dbfc6006a..37bc68fbef43d7f 100644 --- a/files/en-us/web/mathml/guides/getting_started/index.md +++ b/files/en-us/web/mathml/tutorials/for_beginners/getting_started/index.md @@ -1,12 +1,12 @@ --- title: Getting started with MathML -slug: Web/MathML/Guides/Getting_started -page-type: guide +short-title: Getting started +slug: Web/MathML/Tutorials/For_beginners/Getting_started +page-type: tutorial-chapter +sidebar: mathmlref --- -{{MathMLRef}} - -{{NextMenu("Web/MathML/Guides/Text_containers", "Web/MathML/Guides")}} +{{NextMenu("Web/MathML/Tutorials/For_beginners/Text_containers", "Web/MathML/Tutorials/For_beginners")}} In this article, we will take a simple HTML document and see how to add MathML formulas into it, introducing a few elements along the way. @@ -40,7 +40,7 @@ The `` element specifies a fraction with a numerator (its first child) an {{ EmbedLiveSample('Inserting_formulas_in_HTML', 700, 100, "", "") }} > [!WARNING] -> If you just see "1 3" instead of a fraction, then your browser may not support MathML. Check out the [browser compatibility table](/en-US/docs/Web/MathML/Element/math#browser_compatibility) for further details. +> If you just see "1 3" instead of a fraction, then your browser may not support MathML. Check out the [browser compatibility table](/en-US/docs/Web/MathML/Reference/Element/math#browser_compatibility) for further details. ### The display attribute @@ -169,15 +169,15 @@ As an exercise, figure out how to write the following expressions using only the ## Summary -In this article, we have taken a look at how to use the `` element to insert a mathematical formula inside a HTML document. We have learned about rendering differences between `` elements that use `display="block"` or not. In addition, we stumbled upon a couple of other MathML elements: `` for fractions, `` for grouping and finally a few text elements. We will analyze these [text containers](/en-US/docs/Web/MathML/Guides/Text_containers) further in the next article. +In this article, we have taken a look at how to use the `` element to insert a mathematical formula inside a HTML document. We have learned about rendering differences between `` elements that use `display="block"` or not. In addition, we stumbled upon a couple of other MathML elements: `` for fractions, `` for grouping and finally a few text elements. We will analyze these [text containers](/en-US/docs/Web/MathML/Tutorials/For_beginners/Text_containers) further in the next article. ## See also -- [Using MathML](/en-US/docs/Web/MathML/Authoring#using_mathml) -- [The `` element](/en-US/docs/Web/MathML/Element/math) -- [The `` element](/en-US/docs/Web/MathML/Element/mfrac) -- [The `` element](/en-US/docs/Web/MathML/Element/mrow) +- [Using MathML](/en-US/docs/Web/MathML/Guides/Authoring#using_mathml) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/math) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mfrac) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mrow) - [The `math-style` property](/en-US/docs/Web/CSS/math-style) - [The `math-depth` property](/en-US/docs/Web/CSS/math-depth) -{{NextMenu("Web/MathML/Guides/Text_containers", "Web/MathML/Guides")}} +{{NextMenu("Web/MathML/Tutorials/For_beginners/Text_containers", "Web/MathML/Tutorials/For_beginners")}} diff --git a/files/en-us/web/mathml/tutorials/for_beginners/index.md b/files/en-us/web/mathml/tutorials/for_beginners/index.md new file mode 100644 index 000000000000000..79f0b240e049bbd --- /dev/null +++ b/files/en-us/web/mathml/tutorials/for_beginners/index.md @@ -0,0 +1,24 @@ +--- +title: MathML for beginners +short-title: For beginners +slug: Web/MathML/Tutorials/For_beginners +page-type: tutorial +sidebar: mathmlref +--- + +This tutorial will guide you through creating math formulas using structured markup. It starts with an introduction to adding MathML to an HTML document, followed by a deep dive into key components: fractions and roots, scripted elements, and text containers. The tutorial then covers tabular layouts for matrices and advanced math formatting. Finally, a challenge tests your understanding by having you recreate three famous mathematical formulas using the learned concepts. + +## Chapters + +- [Getting started with MathML](/en-US/docs/Web/MathML/Tutorials/For_beginners/Getting_started) + - : In this article, we will take a simple HTML document and see how to add MathML formulas into it, introducing a few elements along the way. +- [MathML text containers](/en-US/docs/Web/MathML/Tutorials/For_beginners/Text_containers) + - : Now that you have a better idea of MathML, we move focus on text containers (variables, numbers, operators, …) which are used as building blocks of MathML formulas. +- [MathML fractions and roots](/en-US/docs/Web/MathML/Tutorials/For_beginners/Fractions_and_roots) + - : Relying on text containers, this article describes how to build more complex MathML expressions by nesting fractions and roots. +- [MathML scripted elements](/en-US/docs/Web/MathML/Tutorials/For_beginners/Scripts) + - : We continue the review of basic math notations and focus on building MathML elements with scripts. +- [MathML tables](/en-US/docs/Web/MathML/Tutorials/For_beginners/Tables) + - : Once all basic math notations are known, it remains to consider tabular layout which can be used for matrix-like expressions and other advanced math layout. +- [Challenge: Three famous mathematical formulas](/en-US/docs/Web/MathML/Tutorials/For_beginners/Three_famous_mathematical_formulas) + - : With the things you have learned in the last few articles, you should already be able to write relatively sophisticated MathML formulas. This challenge gives you a chance to do that. diff --git a/files/en-us/web/mathml/guides/scripts/index.md b/files/en-us/web/mathml/tutorials/for_beginners/scripts/index.md similarity index 86% rename from files/en-us/web/mathml/guides/scripts/index.md rename to files/en-us/web/mathml/tutorials/for_beginners/scripts/index.md index ac67a836b043857..9b6255e1dabdf8c 100644 --- a/files/en-us/web/mathml/guides/scripts/index.md +++ b/files/en-us/web/mathml/tutorials/for_beginners/scripts/index.md @@ -1,18 +1,18 @@ --- title: MathML scripted elements -slug: Web/MathML/Guides/Scripts -page-type: guide +short-title: Scripted elements +slug: Web/MathML/Tutorials/For_beginners/Scripts +page-type: tutorial-chapter +sidebar: mathmlref --- -{{MathMLRef}} - -{{PreviousMenuNext("Web/MathML/Guides/Fractions_and_roots", "Web/MathML/Guides/Tables", "Web/MathML/Guides")}} +{{PreviousMenuNext("Web/MathML/Tutorials/For_beginners/Fractions_and_roots", "Web/MathML/Tutorials/For_beginners/Tables", "Web/MathML/Tutorials/For_beginners")}} We continue the review of basic math notations and focus on building MathML elements with scripts. ## Subscripts and superscripts -Similarly to what we saw in the [previous article](/en-US/docs/Web/MathML/Guides/Fractions_and_roots), the ``, `` and `` have a special structure expecting exactly two elements (for ``, ``) or three elements (for ``): +Similarly to what we saw in the [previous article](/en-US/docs/Web/MathML/Tutorials/For_beginners/Fractions_and_roots), the ``, `` and `` have a special structure expecting exactly two elements (for ``, ``) or three elements (for ``): ```html

@@ -233,7 +233,7 @@ document.getElementById("clearOutput").addEventListener("click", () => { ## More operator properties -We have previously seen some [properties of the `` element](/en-US/docs/Web/MathML/Guides/Text_containers#operator_properties_of_mo) namely stretching in the vertical direction and spacing. Now that scripted elements are available, we can extend that list. We will do that by tweaking our [previous example](#active_learning_recognize_scripted_elements). +We have previously seen some [properties of the `` element](/en-US/docs/Web/MathML/Tutorials/For_beginners/Text_containers#operator_properties_of_mo) namely stretching in the vertical direction and spacing. Now that scripted elements are available, we can extend that list. We will do that by tweaking our [previous example](#active_learning_recognize_scripted_elements). ### Stretching in horizontal direction @@ -337,14 +337,14 @@ math { {{ EmbedLiveSample('Stretching_in_horizontal_direction', 700, 200, "", "") }} -We now realize that the bottom bracket "⎵" and the rightward arrow "→" stretch horizontally to cover the width of the substituted values. Recall that [some vertical operators can stretch](/en-US/docs/Web/MathML/Guides/Text_containers#active_learning_stretchy_operators) to cover the height of non-stretchy siblings inside an ``. Similarly some horizontal operators can stretch to cover the width of non-stretchy siblings in an ``, `` or `` element. +We now realize that the bottom bracket "⎵" and the rightward arrow "→" stretch horizontally to cover the width of the substituted values. Recall that [some vertical operators can stretch](/en-US/docs/Web/MathML/Tutorials/For_beginners/Text_containers#active_learning_stretchy_operators) to cover the height of non-stretchy siblings inside an ``. Similarly some horizontal operators can stretch to cover the width of non-stretchy siblings in an ``, `` or `` element. > [!NOTE] > Stretching can happen for any child of the ``, `` or `` element, not just the underscript or overscript. ### Large operator and limits -So far our example has actually been rendered with the [`display="block"`](/en-US/docs/Web/MathML/Guides/Getting_started#the_display_attribute) attribute. Let's look at the same example, as rendered without that attribute: +So far our example has actually been rendered with the [`display="block"`](/en-US/docs/Web/MathML/Tutorials/For_beginners/Getting_started#the_display_attribute) attribute. Let's look at the same example, as rendered without that attribute: ```html hidden @@ -454,15 +454,15 @@ As expected, the formula is no longer centered and the rendering is modified to ## Summary -In this article, we've finished reviewing basic layout introducing elements ``, ``, ``, ``, ``, `` for subscripts, superscripts, underscripts and overscripts. Using these elements, we were able to briefly introduce new properties of the `` element. In the next article, we will continue focus on [tabular layout](/en-US/docs/Web/MathML/Guides/Tables). +In this article, we've finished reviewing basic layout introducing elements ``, ``, ``, ``, ``, `` for subscripts, superscripts, underscripts and overscripts. Using these elements, we were able to briefly introduce new properties of the `` element. In the next article, we will continue focus on [tabular layout](/en-US/docs/Web/MathML/Tutorials/For_beginners/Tables). ## See also -- [The `` element](/en-US/docs/Web/MathML/Element/msub) -- [The `` element](/en-US/docs/Web/MathML/Element/msup) -- [The `` element](/en-US/docs/Web/MathML/Element/msubsup) -- [The `` element](/en-US/docs/Web/MathML/Element/munder) -- [The `` element](/en-US/docs/Web/MathML/Element/mover) -- [The `` element](/en-US/docs/Web/MathML/Element/munderover) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/msub) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/msup) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/msubsup) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/munder) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mover) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/munderover) -{{PreviousMenuNext("Web/MathML/Guides/Fractions_and_roots", "Web/MathML/Guides/Tables", "Web/MathML/Guides")}} +{{PreviousMenuNext("Web/MathML/Tutorials/For_beginners/Fractions_and_roots", "Web/MathML/Tutorials/For_beginners/Tables", "Web/MathML/Tutorials/For_beginners")}} diff --git a/files/en-us/web/mathml/guides/tables/index.md b/files/en-us/web/mathml/tutorials/for_beginners/tables/index.md similarity index 84% rename from files/en-us/web/mathml/guides/tables/index.md rename to files/en-us/web/mathml/tutorials/for_beginners/tables/index.md index 6f89ba2db3a5592..7c3246448ddf0ac 100644 --- a/files/en-us/web/mathml/guides/tables/index.md +++ b/files/en-us/web/mathml/tutorials/for_beginners/tables/index.md @@ -1,12 +1,12 @@ --- title: MathML tables -slug: Web/MathML/Guides/Tables -page-type: guide +short-title: Tables +slug: Web/MathML/Tutorials/For_beginners/Tables +page-type: tutorial-chapter +sidebar: mathmlref --- -{{MathMLRef}} - -{{PreviousMenuNext("Web/MathML/Guides/Scripts", "Web/MathML/Guides/Three_famous_mathematical_formulas", "Web/MathML/Guides")}} +{{PreviousMenuNext("Web/MathML/Tutorials/For_beginners/Scripts", "Web/MathML/Tutorials/For_beginners/Three_famous_mathematical_formulas", "Web/MathML/Tutorials/For_beginners")}} Once all basic math notations are known, it remains to consider tabular layout which can be used for matrix-like expressions and other advanced math layout. @@ -270,19 +270,19 @@ Besides representing matrix-like objects, MathML tables are sometimes used for a {{ EmbedLiveSample('Usage_for_advanced_layout', 700, 200, "", "") }} > [!WARNING] -> The [`` article](/en-US/docs/Web/MathML/Element/mtable) provides more advanced layout options via special attributes such as alignment or spacing. These originated before CSS equivalents and were originally designed and intended for renderers which were not-CSS aware. However, these attributes may not be implemented in all browsers. In the future, it is likely that usages of `` for layout-only purpose (i.e. not actual matrix-like objects) can be replaced with CSS-based alternatives. +> The [`` article](/en-US/docs/Web/MathML/Reference/Element/mtable) provides more advanced layout options via special attributes such as alignment or spacing. These originated before CSS equivalents and were originally designed and intended for renderers which were not-CSS aware. However, these attributes may not be implemented in all browsers. In the future, it is likely that usages of `` for layout-only purpose (i.e. not actual matrix-like objects) can be replaced with CSS-based alternatives. ## Summary In this article, we've reviewed the ``, `` and `` elements which are the equivalent of HTML elements for tables. We have seen how to use them for representing matrix-like objects and how it is sometimes used for advanced layout. -You've nearly finished this module — we only have one more thing to do. In the [three famous mathematical formulas assessment](/en-US/docs/Web/MathML/Guides/Three_famous_mathematical_formulas) you'll use your new knowledge to rewrite a small mathematical article using HTML and MathML. +You've nearly finished this module — we only have one more thing to do. In the [three famous mathematical formulas assessment](/en-US/docs/Web/MathML/Tutorials/For_beginners/Three_famous_mathematical_formulas) you'll use your new knowledge to rewrite a small mathematical article using HTML and MathML. ## See also - [Learning about HTML tables](/en-US/docs/Learn_web_development/Core/Structuring_content/HTML_table_basics) -- [The `` element](/en-US/docs/Web/MathML/Element/mtable) -- [The `` element](/en-US/docs/Web/MathML/Element/mtr) -- [The `` element](/en-US/docs/Web/MathML/Element/mtd) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mtable) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mtr) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mtd) -{{PreviousMenuNext("Web/MathML/Guides/Scripts", "Web/MathML/Guides/Three_famous_mathematical_formulas", "Web/MathML/Guides")}} +{{PreviousMenuNext("Web/MathML/Tutorials/For_beginners/Scripts", "Web/MathML/Tutorials/For_beginners/Three_famous_mathematical_formulas", "Web/MathML/Tutorials/For_beginners")}} diff --git a/files/en-us/web/mathml/guides/text_containers/index.md b/files/en-us/web/mathml/tutorials/for_beginners/text_containers/index.md similarity index 90% rename from files/en-us/web/mathml/guides/text_containers/index.md rename to files/en-us/web/mathml/tutorials/for_beginners/text_containers/index.md index 52e9941a6f00213..93f69d1bab488a6 100644 --- a/files/en-us/web/mathml/guides/text_containers/index.md +++ b/files/en-us/web/mathml/tutorials/for_beginners/text_containers/index.md @@ -1,12 +1,12 @@ --- -title: MathML Text Containers -slug: Web/MathML/Guides/Text_containers -page-type: guide +title: MathML text containers +short-title: Text containers +slug: Web/MathML/Tutorials/For_beginners/Text_containers +page-type: tutorial-chapter +sidebar: mathmlref --- -{{MathMLRef}} - -{{PreviousMenuNext("Web/MathML/Guides/Getting_started", "Web/MathML/Guides/Fractions_and_roots", "Web/MathML/Guides")}} +{{PreviousMenuNext("Web/MathML/Tutorials/For_beginners/Getting_started", "Web/MathML/Tutorials/For_beginners/Fractions_and_roots", "Web/MathML/Tutorials/For_beginners")}} Now that you have a better idea of MathML, we move focus on text containers (variables, numbers, operators, ...) which are used as building blocks of MathML formulas. @@ -14,7 +14,7 @@ Now that you have a better idea of MathML, we move focus on text containers (var Mathematical formulas involve many special characters, for example greek letters (e.g. Δ), fraktur letters (e.g. 𝔄), double-struck letter (e.g. ℂ), binary operators (e.g. ≠), arrows (e.g. ⇒), integral symbols (e.g. ∮), summation symbols (e.g. ∑), logical symbols (e.g. ∀), fences (e.g. ⌊) and many more. Wikipedia's article [Mathematical operators and symbols in Unicode](https://en.wikipedia.org/wiki/Mathematical_operators_and_symbols_in_Unicode) provides a good overview of the characters used. -Since most of these characters are not part of Basic Latin Unicode block, it is recommended to specify your [document's character encoding](/en-US/docs/Learn_web_development/Core/Structuring_content/Webpage_metadata#specifying_your_documents_character_encoding) and to serve it with appropriate [web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts). Here is a basic template to use UTF-8 encoding and the [Latin Modern Math](/en-US/docs/Web/MathML/Fonts#fonts_with_a_math_table) font: +Since most of these characters are not part of Basic Latin Unicode block, it is recommended to specify your [document's character encoding](/en-US/docs/Learn_web_development/Core/Structuring_content/Webpage_metadata#specifying_your_documents_character_encoding) and to serve it with appropriate [web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts). Here is a basic template to use UTF-8 encoding and the [Latin Modern Math](/en-US/docs/Web/MathML/Guides/Fonts#fonts_with_a_math_table) font: ```html @@ -36,7 +36,7 @@ Since most of these characters are not part of Basic Latin Unicode block, it is ## A bit of semantics -We noticed in the [getting started with MathML](/en-US/docs/Web/MathML/Guides/Getting_started) article that the text in MathML formulas are wrapped in specific container elements such as the `` or ``. More generally, every text in MathML formulas must be included inside such container elements, called _token_ elements. In addition, MathML provides multiple token elements in order to distinguish different meanings of the text content: +We noticed in the [getting started with MathML](/en-US/docs/Web/MathML/Tutorials/For_beginners/Getting_started) article that the text in MathML formulas are wrapped in specific container elements such as the `` or ``. More generally, every text in MathML formulas must be included inside such container elements, called _token_ elements. In addition, MathML provides multiple token elements in order to distinguish different meanings of the text content: - The `` element, which represents an "identifier" which could be a symbolic name or arbitrary text. Examples: `x` (variable), `cos` (function name) and `π` (symbolic constant). - The `` element represents a "numeric literal" or other data that should be rendered as a numeric literal. Examples: `2` (integer), `0.123` (decimal number) or `0xFFEF` (hexadecimal value). @@ -293,7 +293,7 @@ document.getElementById("showSolution").addEventListener( {{ EmbedLiveSample('active_learning_spot_the_difference', 700, 500, "", "") }} > [!NOTE] -> An obvious difference is that the source code became much more verbose with MathML. Recall that this tutorial is about learning the language but in practice MathML content is generally not written manually. See the [Authoring MathML](/en-US/docs/Web/MathML/Authoring) page for more information. +> An obvious difference is that the source code became much more verbose with MathML. Recall that this tutorial is about learning the language but in practice MathML content is generally not written manually. See the [Authoring MathML](/en-US/docs/Web/MathML/Guides/Authoring) page for more information. ### Active learning: stretchy operators @@ -433,17 +433,17 @@ As usual, you are invited to read the source code when you are done: ``` > [!WARNING] -> Special [math fonts](/en-US/docs/Web/MathML/Fonts) are generally required to make that stretching possible, the previous example relies on [web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts). +> Special [math fonts](/en-US/docs/Web/MathML/Guides/Fonts) are generally required to make that stretching possible, the previous example relies on [web fonts](/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts). ## Summary -In this article, we have learnt about a few _token_ elements that are used as text containers as well as their different semantics, namely `` (identifier), `` (numbers), `` (operators), `` (generic text). We have seen special Unicode characters that are commonly found in math formulas and given an overview of some observable behaviors of the `` and `` elements. In the next article, we will see how to rely on _token_ elements to build much complex expressions such as [fractions and roots](/en-US/docs/Web/MathML/Guides/Fractions_and_roots). +In this article, we have learnt about a few _token_ elements that are used as text containers as well as their different semantics, namely `` (identifier), `` (numbers), `` (operators), `` (generic text). We have seen special Unicode characters that are commonly found in math formulas and given an overview of some observable behaviors of the `` and `` elements. In the next article, we will see how to rely on _token_ elements to build much complex expressions such as [fractions and roots](/en-US/docs/Web/MathML/Tutorials/For_beginners/Fractions_and_roots). ## See also -- [The `` element](/en-US/docs/Web/MathML/Element/mi) -- [The `` element](/en-US/docs/Web/MathML/Element/mn) -- [The `` element](/en-US/docs/Web/MathML/Element/mo) -- [The `` element](/en-US/docs/Web/MathML/Element/mtext) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mi) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mn) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mo) +- [The `` element](/en-US/docs/Web/MathML/Reference/Element/mtext) -{{PreviousMenuNext("Web/MathML/Guides/Getting_started", "Web/MathML/Guides/Fractions_and_roots", "Web/MathML/Guides")}} +{{PreviousMenuNext("Web/MathML/Tutorials/For_beginners/Getting_started", "Web/MathML/Tutorials/For_beginners/Fractions_and_roots", "Web/MathML/Tutorials/For_beginners")}} diff --git a/files/en-us/web/mathml/guides/text_containers/operator-spacing.png b/files/en-us/web/mathml/tutorials/for_beginners/text_containers/operator-spacing.png similarity index 100% rename from files/en-us/web/mathml/guides/text_containers/operator-spacing.png rename to files/en-us/web/mathml/tutorials/for_beginners/text_containers/operator-spacing.png diff --git a/files/en-us/web/mathml/guides/three_famous_mathematical_formulas/index.md b/files/en-us/web/mathml/tutorials/for_beginners/three_famous_mathematical_formulas/index.md similarity index 89% rename from files/en-us/web/mathml/guides/three_famous_mathematical_formulas/index.md rename to files/en-us/web/mathml/tutorials/for_beginners/three_famous_mathematical_formulas/index.md index 17f515c515566cb..603ee48363fb30d 100644 --- a/files/en-us/web/mathml/guides/three_famous_mathematical_formulas/index.md +++ b/files/en-us/web/mathml/tutorials/for_beginners/three_famous_mathematical_formulas/index.md @@ -1,12 +1,12 @@ --- title: "Challenge: Three famous mathematical formulas" -slug: Web/MathML/Guides/Three_famous_mathematical_formulas -page-type: guide +short-title: Famous formulas +slug: Web/MathML/Tutorials/For_beginners/Three_famous_mathematical_formulas +page-type: tutorial-chapter +sidebar: mathmlref --- -{{MathMLRef}} - -{{PreviousMenu("Web/MathML/Guides/Tables", "Web/MathML/Guides")}} +{{PreviousMenu("Web/MathML/Tutorials/For_beginners/Tables", "Web/MathML/Tutorials/For_beginners")}} With the things you have learned in the last few articles, you should already be able to write relatively sophisticated MathML formulas. This challenge gives you a chance to do that. @@ -112,6 +112,6 @@ To get this assessment started, you can rely on our usual HTML template. By defa - Don't forget to rely on `` for grouping subexpressions. - Pay attention to stretchy and large operators! - Use the [W3C validator](https://validator.w3.org/nu/) to catch unintended mistakes in your HTML/MathML markup. -- If you are stuck, or realize how painful it is to write MathML by hand, feel free to use tools to help [write MathML](/en-US/docs/Web/MathML/Authoring) such as [TeXZilla](https://fred-wang.github.io/TeXZilla/). +- If you are stuck, or realize how painful it is to write MathML by hand, feel free to use tools to help [write MathML](/en-US/docs/Web/MathML/Guides/Authoring) such as [TeXZilla](https://fred-wang.github.io/TeXZilla/). -{{PreviousMenu("Web/MathML/Guides/Tables", "Web/MathML/Guides")}} +{{PreviousMenu("Web/MathML/Tutorials/For_beginners/Tables", "Web/MathML/Tutorials/For_beginners")}} diff --git a/files/en-us/web/mathml/guides/three_famous_mathematical_formulas/xelatex-output.png b/files/en-us/web/mathml/tutorials/for_beginners/three_famous_mathematical_formulas/xelatex-output.png similarity index 100% rename from files/en-us/web/mathml/guides/three_famous_mathematical_formulas/xelatex-output.png rename to files/en-us/web/mathml/tutorials/for_beginners/three_famous_mathematical_formulas/xelatex-output.png diff --git a/files/en-us/web/mathml/tutorials/index.md b/files/en-us/web/mathml/tutorials/index.md new file mode 100644 index 000000000000000..04dd6a60e70f3b0 --- /dev/null +++ b/files/en-us/web/mathml/tutorials/index.md @@ -0,0 +1,17 @@ +--- +title: MathML tutorials +short-title: Tutorials +slug: Web/MathML/Tutorials +page-type: listing-page +sidebar: mathmlref +--- + +This page lists tutorials for MathML. + +- [MathML for beginners](/en-US/docs/Web/MathML/Tutorials/For_beginners) + - : This tutorial will guide you through creating math formulas using structured markup. It starts with an introduction to adding MathML to an HTML document, followed by a deep dive into key components: fractions and roots, scripted elements, and text containers. The tutorial then covers tabular layouts for matrices and advanced math formatting. Finally, a challenge tests your understanding by having you recreate three famous mathematical formulas using the learned concepts. + +## See also + +- [MathML guides](/en-US/docs/Web/MathML/Guides) +- [MathML reference](/en-US/docs/Web/MathML/Reference) diff --git a/files/sidebars/mathmlref.yaml b/files/sidebars/mathmlref.yaml index 756e85f71b93560..88c2b712de1a561 100644 --- a/files/sidebars/mathmlref.yaml +++ b/files/sidebars/mathmlref.yaml @@ -3,41 +3,42 @@ sidebar: - type: section link: /Web/MathML - - children: - - link: /Web/MathML/Guides - title: Beginners - details: closed - children: - - /Web/MathML/Guides/Getting_started - - /Web/MathML/Guides/Text_containers - - /Web/MathML/Guides/Fractions_and_roots - - /Web/MathML/Guides/Scripts - - /Web/MathML/Guides/Tables - - /Web/MathML/Guides/Three_famous_mathematical_formulas - - title: Guides - details: closed - children: - - /Web/MathML/Authoring - - /Web/MathML/Fonts - type: section + link: /Web/MathML/Tutorials + - link: /Web/MathML/Tutorials/For_beginners + title: Beginners + details: closed + children: + - /Web/MathML/Tutorials/For_beginners/Getting_started + - /Web/MathML/Tutorials/For_beginners/Text_containers + - /Web/MathML/Tutorials/For_beginners/Fractions_and_roots + - /Web/MathML/Tutorials/For_beginners/Scripts + - /Web/MathML/Tutorials/For_beginners/Tables + - /Web/MathML/Tutorials/For_beginners/Three_famous_mathematical_formulas + - type: section + link: /Web/MathML/Guides + title: Guides + - /Web/MathML/Guides/Authoring + - /Web/MathML/Guides/Fonts + - type: section + title: Examples + - /Web/MathML/Guides/Deriving_the_quadratic_formula + - /Web/MathML/Guides/Proving_the_Pythagorean_theorem + - type: section + link: /Web/MathML/Reference title: Reference - type: listSubPages - path: /Web/MathML/Element + path: /Web/MathML/Reference/Element title: Elements details: closed code: true - type: listSubPages - path: /Web/MathML/Global_attributes + path: /Web/MathML/Reference/Global_attributes title: Global attributes details: closed code: true - - /Web/MathML/Attribute - - /Web/MathML/Values - - type: section - title: Examples - - children: - - link: /Web/MathML/Examples/Deriving_the_Quadratic_Formula - - link: /Web/MathML/Examples/MathML_Pythagorean_Theorem + - /Web/MathML/Reference/Attribute + - /Web/MathML/Reference/Values l10n: de: Reference: Referenz @@ -52,7 +53,7 @@ l10n: Global attributes: Global attributes Guides: Guides Examples: Examples - Beginners: Beginner's tutorials + Beginners: For beginners fr: Reference: Références Elements: Éléments diff --git a/front-matter-config.json b/front-matter-config.json index 11d0b73df6f157e..f13b2d86e2b7cdf 100644 --- a/front-matter-config.json +++ b/front-matter-config.json @@ -453,7 +453,10 @@ { "if": { "properties": { - "slug": { "type": "string", "pattern": "^Web/MathML/Element/" } + "slug": { + "type": "string", + "pattern": "^Web/MathML/Reference/Element/" + } } }, "then": { @@ -466,7 +469,7 @@ "properties": { "slug": { "type": "string", - "pattern": "^Web/MathML/Global_attributes/" + "pattern": "^Web/MathML/Reference/Global_attributes/" } } },