What is the property textContent?

A Sets the textual content of a node
B Returns the textual content of a node
C Sets & Returns the textual content of a node
D Modifies texual content

Correct Answer: Sets & Returns the textual content of a node

The property textContent sets or returns the textual content of a node and its descendants. If you set the textContent property, any child nodes are removed and replaced by a single Text node containing the specified string.

Related Questions

Which of the following CSS property border-color property sets the color of an element’s four borders?
Which of the following CSS Property defines the x-coordinate of the background-position property?
Which of the following Microsoft-introduced property defines the position of underlining set by the text-decoration property?
A model in which one physical property is used to represent another physical property is known as:

Next steps