Open In App
Related Articles

HTML5 MathML <mglyph> Tag

Improve Article
Save Article
Like Article

The MathML <mglyph> tag in HTML5 is used to print non-standard symbols. It is used only for those characters or symbols that are not available on Unicode characters.


<mglyph src="pathe" alt="" width="value" height="value"/>


This tag accepts some attributes which are listed below:

  • alt: This attribute defines the alternative text describing the image if the image is not supported or path is incorrect.
  • class|id|style: This attribute is used to hold the styles of the child elements.
  • href: This attribute used to hold any hyperlink to a specified URL.
  • mathbackground: This attribute holds the value of the math expressions background color.
  • height: This attribute defines the height of the image.
  • width: This attribute defines the width of the image.
  • src: This attribute holds the image URL.
  • valign: This attribute holds the vertical alignment base on the current base-line.

Below example illustrates the MathML <mglyph> tag in HTML5:



<!DOCTYPE html>
    <title>HTML5 MathML mglyph tag</title>
        <h1 style="color:green">
        <h3>HTML5 MathML mglyph tag</h3>
                <mglyph src="glyph.png"
                        height="10px" />



Supported Browsers:

This tag is not supported by any browsers.

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 07 Jul, 2023
Like Article
Save Article
Similar Reads
Complete Tutorials