134k views
5 votes
The _____ property should be used only when no markup tags are involved.

insertAdjacentHTML
textContent
outerHTML
innerHTML

1 Answer

1 vote

Answer:

The textContent property should be used only when no markup tags are involved.

Step-by-step explanation:
The textContent property sets or returns the textual content of an element and ignores any HTML tags within the element. It only deals with the text content of the element and doesn't affect the markup.

On the other hand, the innerHTML and outerHTML properties deal with the HTML content of an element and can be used to manipulate the markup tags within an element. The insertAdjacentHTML method is also used to insert HTML content at a specific position in an element's markup.

User Krsteeve
by
8.0k points