Multiple choice technology programming languages

innerHTML, innerText, outerHTML and outerText. What are these of Element object

  1. Methods

  2. Properties

  3. Objects

  4. None of The above

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

In the DOM Level 1 specification, innerHTML, innerText, outerHTML, and outerText are properties of Element objects. They are accessed and assigned like obj.propertyName, not called as methods with parentheses.