Question: what is attr in html?
Answer: In the HTML DOM, the Attr object represents an HTML attribute. An HTML attribute always belongs to an HTML element.