The id attribute specifies a unique id for an HTML element. The value of the id attribute must be unique within the HTML document. The id attribute is used by CSS and JavaScript to select and access a specific element.
#idnamedocument.getElementById()Edit the code below and click Run to see the result live.