VOOZH about

URL: https://www.geeksforgeeks.org/html/html5-mathml-selection-attribute/

⇱ HTML5 MathML selection Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML5 MathML selection Attribute

Last Updated : 23 Jul, 2025

The MathML selection attribute in HTML5 is used to specify the child element that should be used for viewing. This value can be between 1 and the number of children of the element. The default value of this attribute is 1, which means that the first child element of all the options would be viewed by default. This attribute is accepted by the <maction> tag.

Syntax:

<element selection="index">

Attribute Values: This attribute has a single value as mentioned above and described below:

  • index: It holds the index of the child element to be viewed.

The example below illustrates the MathML selection attribute:

Example:

Output:

👁 Image

Supported Browsers: The browsers supported by HTML5 MathML selection attribute are listed below:

  • Firefox
Comment
Article Tags: