Multiple choice technology operating systems

Which DOM property of a tag changes its html content

  1. html

  2. innerHTML

  3. text

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The innerHTML property gets or sets the HTML content inside an element. The 'html' option doesn't exist as a DOM property, and 'text' is not a standard property for this purpose.