--- title: Element.localName slug: Web/API/Element/localName tags: - API - DOM - NeedsBrowserCompatibility - NeedsMobileBrowserCompatibility - プロパティ - リファレンス browser-compat: api.Element.localName translation_of: Web/API/Element/localName --- {{APIRef("DOM")}} **`Element.localName`** は読み取り専用プロパティで、要素の修飾名のローカル部分を返します。 ## 構文 ```js name = element.localName ``` ### 返値 要素の修飾名の、ローカル部分を示す {{domxref("DOMString")}} です。 ## 例 (`text/xml` や `application/xhtml+xml` のような、XML のコンテンツタイプで送出される必要があります。) ```xml