idattributter
An id attribute is a global attribute in HTML and other markup languages used to uniquely identify an element within a document. The value of an id can serve as a hook for styling, scripting, linking, and accessibility, and is commonly used by CSS selectors, JavaScript DOM methods, fragment identifiers in URLs, and ARIA attributes.
In HTML5 the id value must be unique within the document and must contain at least one
Common uses include selecting an element with CSS via #id, accessing an element in script via document.getElementById,