The id property of the Element interface represents the element's identifier, reflecting the id global attribute.
id
MDN Reference