Can a HTML element have multiple unique ID attributes? [duplicate]
问题 This question already has answers here : Can an html element have multiple ids? (17 answers) Closed 5 years ago . Needed to know if an HTML element can have multiple attributes of ID's , for instance : <input type="text" id="identifier1" id="selector1" /> As I needed to clarify this statement mentioned about selectors at W3 website. If an element has multiple ID attributes, all of them must be treated as IDs for that element for the purposes of the ID selector. Such a situation could be