kord
answered May 20 '22 00:00
so your html must have more than elements which have same value of id attribute
so unique id value is not good practice in html
suppose
<div id="spec"> </div>
<span id="spec"> </span>
<a id="spec"> </a>
so above HTML is not good practice because it has three elements have the same id "spec" so you should remove the id and give another unique id name to the any of two elements.