.textContent

Term side of the Card
Topic: Object on Page
Unit title: .textContent
Categories: Property
Explanation side of the Card

Explanation: The browser API property that gets or sets the text content of an HTML element. It returns the plain text inside the element and its child elements, excluding any HTML tags.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 3
Availability: