Multiple choice

Which of the following statements is FALSE regarding InnerHTML?

  1. The content of a webpage can be changed dynamically using InnerHTML.

  2. The id of an element can be referred by using getElement() method.

  3. InnerHTML is not a part of DOM.

  4. It was introduced by Microsoft.

  5. It is valid for both block and inline elements.

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

Each element that we want to modify dynamically must be assigned a unique id. The InnerHTML property is used along with the getElementById() method to refer to a particular element by using its Id.