Unique IDs (IDs)

Axe-core deprecated + obsolete

Each element with an id attribute (e.g., <button id="submit">) has a unique id throughout the document - unless the id is an empty value.


Same id used twice:

These paragraphs have the same IDs:

If documentGetElementById("lol") is ever used, an error will be thrown automatically


This paragraph has id = "lol"

This paragraph has id = "lol"


You can view full original source code by pressing Ctrl + U

Note: An error is usually thrown for this automatically. Possible to automatically test. An automatic test can be performed by checking the number of elements with a given id.

axe detected: none  |  QualWeb detected: 4.1.1