MDN self-hosted library · e01.org

NDEFRecord: lang property

Web NFC API

no runnable cells web-api-instance-property upstream source

Web NFC API

The lang property of the NDEFRecord interface returns the language of a textual payload, or null if one was not supplied.

The record might be missing a language tag, for example, if the recorded information is not locale-specific.

Value

A string.

Specifications

Browser compatibility

See also

  • HTML lang attribute, that declares content language of the document or its elements
  • HTTP headers that declare content language: Content-Language and Accept-Language