---
title: <glyphRef>
slug: Web/SVG/Element/glyphRef
tags:
  - Deprecated
  - Element
  - NeedsExample
  - Reference
  - SVG
  - SVG Text Content
browser-compat: svg.elements.glyphRef
---
{{SVGRef}}{{deprecated_header}}

The `glyphRef` element provides a single possible glyph to the referencing {{ SVGElement("altGlyph") }} substitution.

## Usage context

{{svginfo}}

## Attributes

### Global attributes

- [Core attributes](/en-US/docs/Web/SVG/Attribute#core)
- [Presentation attributes](/en-US/docs/Web/SVG/Attribute#presentation)
- [XLink attributes](/en-US/docs/Web/SVG/Attribute#xlink)
- {{SVGAttr("class")}}
- {{SVGAttr("style")}}

### Specific attributes

- {{SVGAttr("x")}}
- {{SVGAttr("y")}}
- {{SVGAttr("dx")}}
- {{SVGAttr("dy")}}
- {{SVGAttr("glyphRef")}}
- {{SVGAttr("format")}}
- {{SVGAttr("xlink:href")}}

## DOM Interface

This element implements the [`SVGGlyphRefElement`](/en-US/docs/DOM/SVGGlyphRefElement) interface.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{SVGElement("altGlyph")}}
