Answer & Solution
Answer: Option A
Solution:
The setAttribute() method in JavaScript allows you to change the value of an HTML attribute. This method is used to set or change the value of a specified attribute on an HTML element.