🔸element content
🚧 under construction
browser ⟩ DOM ⟩ type ⟩ Element ⟩ content
When nodeValue is defined to be null, setting it has no effect.
- Node ⟩ - .textContent - text content of the node and its descendants. 
- .nodeValue - returns/sets the value of the node. 
 
- Element ⟩ - .innerHTML - replace the content of the element. 
- .outerHTML - replace the element itself. 
- .insertAdjacentHTML() - 👉 🗺️ 圖解 
 
Last updated
Was this helpful?