Q. Which method can be used to change the content of an HTML element?

  • (A) innerHTML
  • (B) setAttribute
  • (C) value
  • (D) classList
πŸ’¬ Discuss
βœ… Correct Answer: (A) innerHTML
Explanation: innerHTML allows you to get or set the HTML content of an element.
Explanation by: Mr. Dubey
innerHTML allows you to get or set the HTML content of an element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
106
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate